diff options
author | amartin <olpc@xo-05-28-21.localdomain> | 2007-08-21 05:03:24 (GMT) |
---|---|---|
committer | amartin <olpc@xo-05-28-21.localdomain> | 2007-08-21 05:03:24 (GMT) |
commit | 07a9a26a303ce31e2de93531a4f3a0da98d73542 (patch) | |
tree | d9303560eb8816a1ed4b37d98ec47ee06c098213 /Edit | |
parent | 7bec4f11f03edf1d5b68b6a4c61f7953aac91396 (diff) |
drawing attemped before initialization
Diffstat (limited to 'Edit')
-rw-r--r-- | Edit/EditToolbars.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Edit/EditToolbars.py b/Edit/EditToolbars.py index 34c438d..adad9ae 100644 --- a/Edit/EditToolbars.py +++ b/Edit/EditToolbars.py @@ -392,7 +392,6 @@ class generationPalette(Palette): for scale in scales: self.scaleBox.append_item(scales.index(scale), scale) self.scaleBox.connect('changed', self.handleScale) - self.scaleBox.set_active(0) self.modeBoxHBox = gtk.HBox() self.modeBoxLabel = gtk.Label(_('Mode: ')) @@ -401,7 +400,6 @@ class generationPalette(Palette): for mode in modes: self.modeBox.append_item(modes.index(mode), mode) self.modeBox.connect('changed', self.handleMode) - self.modeBox.set_active(0) self.scaleBoxHBox.pack_start(self.scaleBoxLabel, False, False, padding = 10) self.scaleBoxHBox.pack_start(self.scaleBox, False, False, padding = 10) @@ -416,7 +414,6 @@ class generationPalette(Palette): self.cancelButton.connect('clicked',self.cancel) self.decisionBox.pack_start(self.cancelButton, False, False, padding = 5) self.decisionBox.pack_start(self.acceptButton, False, False, padding = 5) - self.decisionBox.pack_start(self.previewButton, False, False, padding = 5) self.mainBox.pack_start(self.slidersBox, False, False, padding = 5) self.mainBox.pack_start( self.previewBox, False, False, padding = 5 ) @@ -469,6 +466,9 @@ class generationPalette(Palette): "Note_Border": colormap.alloc_color( Config.BG_COLOR, True, True ), "Note_Fill": colormap.alloc_color( Config.FG_COLOR, True, True ) } + self.scaleBox.set_active(0) + self.modeBox.set_active(0) + def handleXAdjustment1( self, data ): self.rythmDensity = self.XAdjustment1.value * .01 self.parametersChanged() |