Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-07-31 21:53:24 (GMT)
committer Nat <natcl@hotmail.com>2007-07-31 21:53:24 (GMT)
commit2985dae00087571da9dc088a346f3583793af5da (patch)
tree8b654b541d6f67d44e2ebec2166cbd4c996700c3 /SynthLab
parent685910261b883516b53b8288c1ad695d9ca0eb5c (diff)
Synthlab Duration slider bonus
Diffstat (limited to 'SynthLab')
-rw-r--r--SynthLab/SynthLabToolbars.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/SynthLab/SynthLabToolbars.py b/SynthLab/SynthLabToolbars.py
index a87cca7..b504795 100644
--- a/SynthLab/SynthLabToolbars.py
+++ b/SynthLab/SynthLabToolbars.py
@@ -27,6 +27,9 @@ class mainToolbar(gtk.Toolbar):
self.durationSliderLabel = gtk.Label(_('Duration: '))
self.durationSliderLabelTool = gtk.ToolItem()
self.durationSliderLabelTool.add(self.durationSliderLabel)
+ self.durationSliderLabelSecond = gtk.Label(_(' s.'))
+ self.durationSliderLabelSecondTool = gtk.ToolItem()
+ self.durationSliderLabelSecondTool.add(self.durationSliderLabelSecond)
self.durationSliderAdj = gtk.Adjustment(2, .5, 10, .01, .01, 0)
self.durationSliderAdj.connect("value_changed" , self.synthLab.handleDuration)
self.durationSlider = gtk.HScale(adjustment = self.durationSliderAdj)
@@ -37,8 +40,11 @@ class mainToolbar(gtk.Toolbar):
self.durationSliderTool.add(self.durationSlider)
self.insert(self.durationSliderLabelTool, -1)
self.insert(self.durationSliderTool, -1)
+ self.insert(self.durationSliderLabelSecondTool, -1)
self.durationSliderLabelTool.show()
self.durationSliderLabel.show()
+ self.durationSliderLabelSecondTool.show()
+ self.durationSliderLabelSecond.show()
self.durationSlider.show()
self.durationSliderTool.show()
self.durationSliderTool.set_tooltip(self.tooltips, _('Duration'))
@@ -81,7 +87,7 @@ class mainToolbar(gtk.Toolbar):
self.synthRec6Button.show()
self.synthRec6Button.set_tooltip(_('Record Synth sound into slot 6'))
- _insertSeparator(8)
+ _insertSeparator(6)
self.resetButton = ToolButton('reset')
self.resetButton.connect('clicked',self.synthLab.handleReset)