Skip to content
Browse files

Ui for speed increases

  • Loading branch information...
1 parent 12234fe commit f653a945c4809bb65ef0507fbd8c58959466edc1 @jwagner committed Mar 7, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 littlemetronome/main.py
View
11 littlemetronome/main.py
@@ -137,14 +137,23 @@ def init_ui(self):
self.tempo.scale.connect("value-changed", self.tempo_changed)
self.tempo_changed(self.tempo)
+ increase_box = gtk.HBox()
+ increase_box.pack_start(gtk.Label('by'))
+ self.increase_by = gtk.SpinButton(gtk.Adjustment(0.0, -10.0, 10.0, 1.0, 1.0))
+ increase_box.pack_start(self.increase_by)
+ increase_box.pack_start(gtk.Label('beats every'))
+ self.increase_every = gtk.SpinButton(gtk.Adjustment(1.0, 1.0, 100.0, 1.0, 1.0))
+ increase_box.pack_start(self.increase_every)
+ increase_box.pack_start(gtk.Label('seconds'))
+
self.pattern = gtk.Entry()
self.pattern.set_tooltip_text('Rhythm pattern 0 = Silent, 1-9 = different beeps')
self.pattern.connect("changed", self.pattern_changed)
self.pattern.set_text("1222")
form = mygtk.form([
('Tempo', self.tempo),
- ('Increase', None),
+ ('Increase', increase_box),
('Pattern', self.pattern)
])

0 comments on commit f653a94

Please sign in to comment.
Something went wrong with that request. Please try again.