Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tablock.py
diff options
context:
space:
mode:
authorWalter 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)
commitea3c5d4403f9158d1938bb0219b880d80823a3ca (patch)
treef9bb69d98857bf696293b0c4da5328869064002c /tablock.py
parent35785f3b5d4ca045462fd695073006d8b910c934 (diff)
early version of highlighter code
Diffstat (limited to 'tablock.py')
-rw-r--r--tablock.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tablock.py b/tablock.py
index 69b27e7..c2be895 100644
--- a/tablock.py
+++ b/tablock.py
@@ -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