diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-08-23 22:09:05 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-08-23 22:09:05 (GMT) |
commit | e90310bd612fc920ffb2121b05b69342edc6e270 (patch) | |
tree | 30864aa04fe3369df984bb663e53d8a5082d9b3a /Edit/MainWindow.py | |
parent | 4ccd551f335cccc04460907c727deb824db8622c (diff) |
big dice connected, paint fix
Diffstat (limited to 'Edit/MainWindow.py')
-rw-r--r-- | Edit/MainWindow.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index db58585..2d0db40 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -54,6 +54,8 @@ class MainWindow( SubActivity ): self.csnd.setTrackVolume(100, i) self.trackCount = 6 + self.scale = GenerationConstants.DEFAULT_SCALE + def init_data( ): TP.ProfileBegin("init_data") self._data = {} @@ -915,7 +917,7 @@ class MainWindow( SubActivity ): self.noteDB.setInstrument( pages, id, instrument.instrumentId ) def getScale(self): - return self.generationPanel.scale + return self.scale def handleVolume( self, widget ): self._data["volume"] = round( widget.get_value() ) @@ -1938,8 +1940,8 @@ class InstrumentButton( gtk.DrawingArea ): colormap = self.get_colormap() self.color = { "background": colormap.alloc_color( backgroundFill, True, True ), - "divider": colormap.alloc_color( "#000", True, True ), - "+/-": colormap.alloc_color( Config.FG_COLOR, True, True ), + "divider": colormap.alloc_color( "#000", True, True ), + "+/-": colormap.alloc_color( Config.FG_COLOR, True, True ), "+/-Highlight": colormap.alloc_color( "#FFF", True, True ) } self.pixmap = None |