From ea3c5d4403f9158d1938bb0219b880d80823a3ca Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 05 Feb 2010 14:14:05 +0000 Subject: early version of highlighter code --- (limited to 'tablock.py') 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 -- cgit v0.9.1