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 23:21:14 (GMT)
committer Nat <Nat@localhost.localdomain>2007-02-20 23:21:14 (GMT)
commit745bfc5b4325147e0cef5157bfc34925a80ce763 (patch)
tree66dc3a5fcb54bc914252c107d45b53a56befc614 /Util/InstrumentPanel.py
parent7739a4e11b84d6de69a2033b677bb1896dcecdbc (diff)
Misc stuff
Diffstat (limited to 'Util/InstrumentPanel.py')
-rw-r--r--Util/InstrumentPanel.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Util/InstrumentPanel.py b/Util/InstrumentPanel.py
index dbd34ee..f94fa46 100644
--- a/Util/InstrumentPanel.py
+++ b/Util/InstrumentPanel.py
@@ -9,7 +9,7 @@ from Util.ThemeWidgets import *
Tooltips = Config.Tooltips
class InstrumentPanel(gtk.EventBox):
- def __init__(self,setInstrument = None, playInstrument = None, enterMode = False, micRec = None, synthRec = None):
+ def __init__(self,setInstrument = None, playInstrument = None, enterMode = False, micRec = None, synthRec = None, rowLen = 8):
gtk.EventBox.__init__(self)
color = gtk.gdk.color_parse(Config.PANEL_BCK_COLOR)
self.modify_bg(gtk.STATE_NORMAL, color)
@@ -20,6 +20,7 @@ class InstrumentPanel(gtk.EventBox):
self.playInstrument = playInstrument
self.micRec = micRec
self.synthRec = synthRec
+ self.rowLen = rowLen
self.enterMode = enterMode
self.instrumentBox = None
self.recstate = False
@@ -67,7 +68,7 @@ class InstrumentPanel(gtk.EventBox):
instrumentNum = len(self.getInstrumentList(category))
instruments = self.getInstrumentList(category)
- cols = 8
+ cols = self.rowLen
if instrumentNum < cols:
cols = instrumentNum
rows = (instrumentNum // cols)