diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-02-05 14:14:05 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-02-05 14:14:05 (GMT) |
commit | ea3c5d4403f9158d1938bb0219b880d80823a3ca (patch) | |
tree | f9bb69d98857bf696293b0c4da5328869064002c /tablock.py | |
parent | 35785f3b5d4ca045462fd695073006d8b910c934 (diff) |
early version of highlighter code
Diffstat (limited to 'tablock.py')
-rw-r--r-- | tablock.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -115,6 +115,14 @@ class Block: block_list.append_to_list(self) + # We may want to highlight a block... + def highlight(self): + self.spr.set_shape(self.shapes[1]) + + # Or unhighlight it. + def unhighlight(self): + self.spr.set_shape(self.shapes[0]) + # We need to resize some blocks on the fly. def resize(self): # make sure the label fits |