Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2013-02-14 14:25:58 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2013-02-14 14:25:58 (GMT)
commit03ee5b634ca5b2ca3f624907afb9d388679eb3f0 (patch)
tree04b432f538480353c83c21d41f1ce08dc557233f
parentd38ff3978c5b4f0217689bdecca65b56b9de4c9a (diff)
Add togglebuttons for notes
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
-rw-r--r--main.py14
m---------stafflib0
2 files changed, 13 insertions, 1 deletions
diff --git a/main.py b/main.py
index a48cfc2..0a6752e 100644
--- a/main.py
+++ b/main.py
@@ -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()
diff --git a/stafflib b/stafflib
-Subproject 199e958182e243f4ca1b738c61921f1d9d1c38d
+Subproject b19af58e00a37aacdec8ad477e0ca99cc04793f