diff options
author | amartin <olpc@xo-00-CE-12.localdomain> | 2007-06-29 20:04:34 (GMT) |
---|---|---|
committer | amartin <olpc@xo-00-CE-12.localdomain> | 2007-06-29 20:04:34 (GMT) |
commit | fd69395099d5302cb4db19e910e292410b4ae95c (patch) | |
tree | ab75467ccff25629eab4263b21df5fc634fead19 /Util/InstrumentPanel.py | |
parent | 601e1f48e93d7768736cbb2d54015ed2776e5845 (diff) |
load/save page props
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r-- | Util/InstrumentPanel.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py index 072edcd..ef88f2f 100644 --- a/Util/InstrumentPanel.py +++ b/Util/InstrumentPanel.py @@ -359,7 +359,14 @@ class DrumPanel( gtk.EventBox ): if self.setDrum: widget.event( gtk.gdk.Event( gtk.gdk.LEAVE_NOTIFY ) ) # fake the leave event self.setDrum(data) - + + def set_activeInstrument( self, instrument, state ): + if instrument in self.instrumentList: + btn = self.drums[instrument] + btn.handler_block(btn.clickedHandler) + btn.set_active(state) + btn.handler_unblock(btn.clickedHandler) + if __name__ == "__main__": win = gtk.Window() wc = DrumPanel(None) |