Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/InstrumentPanel.py
diff options
context:
space:
mode:
authorNat <Nat@localhost.localdomain>2007-02-20 03:42:08 (GMT)
committer Nat <Nat@localhost.localdomain>2007-02-20 03:42:08 (GMT)
commit04400cc2150a4c8e267ec48f3a5b4f9cc8afde36 (patch)
tree078ac51aa79d4db4884f460087eb0211fe614707 /Util/InstrumentPanel.py
parent0f854518126073ab3bad4d3e0b9f1405e5624483 (diff)
Categories radio buttons (I need more vodka)
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r--Util/InstrumentPanel.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py
index cbbca97..76149da 100644
--- a/Util/InstrumentPanel.py
+++ b/Util/InstrumentPanel.py
@@ -35,10 +35,13 @@ class InstrumentPanel(gtk.EventBox):
def draw_toolbar(self):
toolbarBox = gtk.HBox()
+ firstBtn = None
for category in Config.CATEGORIES:
btnBox = RoundVBox(fillcolor = '#6F947B', bordercolor = Config.PANEL_BCK_COLOR, radius = Config.PANEL_RADIUS)
btnBox.set_border_width(Config.PANEL_SPACING)
- btn = ImageButton(Config.IMAGE_ROOT + category + '.png')
+ btn = ImageRadioButton(firstBtn,Config.IMAGE_ROOT + category + '.png', Config.IMAGE_ROOT + category + 'sel.png', Config.IMAGE_ROOT + category + 'sel.png')
+ if firstBtn == None:
+ firstBtn = btn
btn.connect('clicked',self.handleToolbarBtnPress,category)
btnBox.add(btn)
toolbarBox.pack_start(btnBox,True,True)