diff options
author | olipet <olpc@localhost.localdomain> | 2007-01-09 21:54:57 (GMT) |
---|---|---|
committer | olipet <olpc@localhost.localdomain> | 2007-01-09 21:54:57 (GMT) |
commit | 34dcffe2fd53078dc6d9d86e01653da5045918c4 (patch) | |
tree | f181b13a2321aaf1caccf38288a5934b1067ad89 /SynthLab/Parameter.py | |
parent | 2fa85b2c224f2c73c98e096a985e21cfa3d9d2a8 (diff) |
improved display of SynthLab parameters
Diffstat (limited to 'SynthLab/Parameter.py')
-rw-r--r-- | SynthLab/Parameter.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/SynthLab/Parameter.py b/SynthLab/Parameter.py index 70c6c3b..bf158b0 100644 --- a/SynthLab/Parameter.py +++ b/SynthLab/Parameter.py @@ -8,12 +8,16 @@ from Util.ThemeWidgets import * Tooltips = Config.Tooltips class Parameter( gtk.Window ): - def __init__( self, X, Y, string ): + def __init__( self, string ): gtk.Window.__init__( self, gtk.WINDOW_TOPLEVEL ) self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG) - self.move(550, 250) + color = gtk.gdk.color_parse(Config.INST_BCK_COLOR) + self.modify_bg(gtk.STATE_NORMAL, color) + self.move(15, 660) + self.set_size_request(450, 40) +# self.move(500, 50) self.set_decorated(False) - mainBox = RoundHBox(fillcolor=Config.PANEL_COLOR, bordercolor=Config.INST_BCK_COLOR) + mainBox = RoundHBox(fillcolor=Config.INST_BCK_COLOR, bordercolor=Config.INST_BCK_COLOR) mainBox.set_border_width(4) mainBox.set_radius(10) self.text = gtk.Label(string) @@ -21,5 +25,5 @@ class Parameter( gtk.Window ): self.add(mainBox) self.show_all() - def update( self, X, Y, string ): + def update( self, string ): self.text.set_text(string) |