Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/block.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-01-28 00:25:46 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-28 00:25:46 (GMT)
commitf579eedc9e7cdf2b6d176c66bb53c4034d23290f (patch)
tree3772dd3cdb3a9d030ed191c640bf09c544bd43cd /block.py
parenta91b6c55f4185be1265a9dee43c14d2bbcffff64 (diff)
cleaning up
Diffstat (limited to 'block.py')
-rw-r--r--block.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/block.py b/block.py
index 352a2f0..4e2685e 100644
--- a/block.py
+++ b/block.py
@@ -28,8 +28,9 @@ from gettext import gettext as _
# A class for the list of blocks and everything they share in common
#
class Blocks:
- def __init__(self):
+ def __init__(self, font_scale_factor = 1):
self.list = []
+ self.font_scale_factor = font_scale_factor
def get_block(self, i):
if i < 0 or i > len(self.list)-1:
@@ -67,6 +68,7 @@ class Blocks:
class Block:
#
# TODO:
+ # block data should be stored in block, not in block.spr.label
# Logo code
# HTML code
# debug code
@@ -92,7 +94,7 @@ class Block:
self.name = OLD_NAMES[self.name]
for i in range(len(self._font_size)):
- self._font_size[i] *= self.scale
+ self._font_size[i] *= self.scale*block_list.font_scale_factor
self._new_block_from_factory(sprite_list, labels, x, y)