Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab/Parameter.py
diff options
context:
space:
mode:
authorolipet <olpc@localhost.localdomain>2007-01-09 11:58:41 (GMT)
committer olipet <olpc@localhost.localdomain>2007-01-09 11:58:41 (GMT)
commit2fa85b2c224f2c73c98e096a985e21cfa3d9d2a8 (patch)
tree10f99cc6002574986176017913f697a616b23a4d /SynthLab/Parameter.py
parent19cb2cf56e9343931d7add935e101cbe2043eb98 (diff)
display of parameter when moving SynthLab sliders
Diffstat (limited to 'SynthLab/Parameter.py')
-rw-r--r--SynthLab/Parameter.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/SynthLab/Parameter.py b/SynthLab/Parameter.py
new file mode 100644
index 0000000..70c6c3b
--- /dev/null
+++ b/SynthLab/Parameter.py
@@ -0,0 +1,25 @@
+import pygtk
+pygtk.require('2.0')
+import gtk
+
+import Config
+from Util.ThemeWidgets import *
+
+Tooltips = Config.Tooltips
+
+class Parameter( gtk.Window ):
+ def __init__( self, X, Y, string ):
+ gtk.Window.__init__( self, gtk.WINDOW_TOPLEVEL )
+ self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
+ self.move(550, 250)
+ self.set_decorated(False)
+ mainBox = RoundHBox(fillcolor=Config.PANEL_COLOR, bordercolor=Config.INST_BCK_COLOR)
+ mainBox.set_border_width(4)
+ mainBox.set_radius(10)
+ self.text = gtk.Label(string)
+ mainBox.pack_start(self.text, False, False, 5)
+ self.add(mainBox)
+ self.show_all()
+
+ def update( self, X, Y, string ):
+ self.text.set_text(string)