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.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,