diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -10,8 +10,20 @@ from stafflib import StaffArea w = Gtk.Window() w.maximize() w.connect('destroy', lambda w: Gtk.main_quit()) +vbox = Gtk.Box() +vbox.set_orientation(Gtk.Orientation.VERTICAL) staff = StaffArea() -w.add(staff) +vbox.pack_start(staff, True, True, 0) +notes = ['C', 'D', 'E', 'F', 'G', 'A', 'B', 'C', 'D', 'F', 'G', 'A', 'B', 'C'] +notesbox = Gtk.Box() +for i in notes: + button = Gtk.ToggleButton(i) + button.show() + notesbox.pack_start(button, True, True, 0) +notesbox.show() +vbox.pack_start(notesbox, False, True, 0) +vbox.show() +w.add(vbox) staff.show() w.show() |