Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tablock.py
diff options
context:
space:
mode:
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