Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/draw_piano.py
diff options
context:
space:
mode:
Diffstat (limited to 'draw_piano.py')
-rwxr-xr-xdraw_piano.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/draw_piano.py b/draw_piano.py
index 6f045c8..48df9eb 100755
--- a/draw_piano.py
+++ b/draw_piano.py
@@ -45,6 +45,10 @@ class PianoKeyboard(gtk.DrawingArea):
gtk.gdk.BUTTON_RELEASE_MASK | gtk.gdk.POINTER_MOTION_MASK | \
gtk.gdk.POINTER_MOTION_HINT_MASK)
+ def set_labels(self, labels):
+ self._labels = labels
+ self.queue_draw()
+
def calculate_sizes(self, width):
self._width = width
self._height = self._width / 2