Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab
diff options
context:
space:
mode:
authorolipet <olpc@localhost.localdomain>2007-01-08 01:57:34 (GMT)
committer olipet <olpc@localhost.localdomain>2007-01-08 01:57:34 (GMT)
commitaf1c068c9db77d96e0e36b57dace4a82252756c3 (patch)
tree0c68978f133343f33d902e4f2d4d6688521c6dce /SynthLab
parentd9a709b56e0c3370f5f9404fb6c7295e8ee09552 (diff)
ttle bugs fixed
Diffstat (limited to 'SynthLab')
-rw-r--r--SynthLab/SynthLabWindow.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py
index 0a7750b..6314091 100644
--- a/SynthLab/SynthLabWindow.py
+++ b/SynthLab/SynthLabWindow.py
@@ -17,7 +17,7 @@ Tooltips = Config.Tooltips
class SynthLabWindow( gtk.Window ):
def __init__( self, client, table ):
gtk.Window.__init__( self, gtk.WINDOW_TOPLEVEL )
- color = gtk.gdk.color_parse('#FFFFFF')
+ color = gtk.gdk.color_parse(Config.PANEL_BCK_COLOR)
self.modify_bg(gtk.STATE_NORMAL, color)
self.set_border_width(Config.MAIN_WINDOW_PADDING)
self.csnd = client
@@ -28,7 +28,8 @@ class SynthLabWindow( gtk.Window ):
self.buttonState = 0
self.instanceOpen = 0
self.recordWait = 0
- self.duration = 1.5
+ self.duration = 1.5
+ self.durString = '%.2f' % self.duration
self.playingPitch = []
self.connections = []
self.straightConnections = []
@@ -111,7 +112,7 @@ class SynthLabWindow( gtk.Window ):
closeButton.connect("clicked", self.handleClose, None)
self.buttonBox.pack_start(closeButton, False, False, 2)
- self.tooltips.set_tip(self.durationSlider, Tooltips.SOUNDDUR + ':' + str(self.duration))
+ self.tooltips.set_tip(self.durationSlider, Tooltips.SOUNDDUR + ': ' + self.durString)
self.tooltips.set_tip(saveButton, Tooltips.SAVE)
self.tooltips.set_tip(loadButton, Tooltips.LOAD)
self.tooltips.set_tip(self.recordButton, Tooltips.SAVEMINI)
@@ -151,9 +152,10 @@ class SynthLabWindow( gtk.Window ):
def handleDuration( self, data ):
self.duration = self.durAdjust.value
+ self.durString = '%.2f' % self.duration
img = int((self.duration - .5) * 1.425 + 1)
self.durLabel.set_from_file(Config.IMAGE_ROOT + 'dur' + str(img) + '.png')
- self.tooltips.set_tip(self.durationSlider, Tooltips.SOUNDDUR + ':' + str(self.duration))
+ self.tooltips.set_tip(self.durationSlider, Tooltips.SOUNDDUR + ': ' + self.durString)
def playNote( self, midiPitch ):
cpsPitch = 261.626*pow(1.0594633, midiPitch-36)