Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/draw_piano.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-11-27 05:15:10 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-11-27 05:15:10 (GMT)
commit53f65e36d87f0e13b8a3c36fa2ca4e1d6fc348c1 (patch)
treeaa40abc078f82637e87ae1002caf762bc8e17525 /draw_piano.py
parente377a85e2155b2d0b7903fd4711a3c24dc90f34f (diff)
Draw the piano at the bottom of the screen
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'draw_piano.py')
-rwxr-xr-xdraw_piano.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/draw_piano.py b/draw_piano.py
index 260a042..137581e 100755
--- a/draw_piano.py
+++ b/draw_piano.py
@@ -78,6 +78,7 @@ class PianoKeyboard(Gtk.DrawingArea):
logging.error('key_width %s', self._key_width)
self._black_keys_height = self._height * 2 / 3
self._octave_width = self._key_width * 7
+ self.set_size_request(-1, self._height)
def __event_cb(self, widget, event):
if event.type in (Gdk.EventType.TOUCH_BEGIN,