From fd69395099d5302cb4db19e910e292410b4ae95c Mon Sep 17 00:00:00 2001 From: amartin Date: Fri, 29 Jun 2007 20:04:34 +0000 Subject: load/save page props --- (limited to 'Util/InstrumentPanel.py') 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) -- cgit v0.9.1