diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-01-29 22:37:18 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-01-29 22:37:18 (GMT) |
commit | 61247fb0e77c0717a65de9ce0790011ba038f470 (patch) | |
tree | 765c6a6c998cd14bd45ab0c92a676c66208db6df /tawindow.py | |
parent | 259f968184d27a9f5fd3007f99a5d0ef525072aa (diff) |
simple expandable block scheme
Diffstat (limited to 'tawindow.py')
-rw-r--r-- | tawindow.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py index 8c15123..e74201f 100644 --- a/tawindow.py +++ b/tawindow.py @@ -834,13 +834,13 @@ class TurtleArtWindow(): if hasattr(spr, 'type'): if spr.type == "canvas": spr.set_layer(CANVAS_LAYER) - return True elif spr.type == 'selector': self._select_category(spr) elif spr.type == 'category': r,g,b,a = spr.get_pixel((x, y)) if (r == 255 and g == 0) or g == 255: self._hide_palette() + return True """ Block pressed @@ -961,6 +961,10 @@ class TurtleArtWindow(): elif blk.name in self.importblocks: self._import_from_journal(self.selected_spr) ''' + elif blk.name=='vspace': + blk.expand_in_y(20) + elif blk.name=='hspace': + blk.expand_in_x(20) elif blk.name=='nop' and self.myblock==None: self._import_py() else: |