summaryrefslogtreecommitdiffstats
path: root/examples/tut7.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tut7.py')
-rwxr-xr-xexamples/tut7.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tut7.py b/examples/tut7.py
index ed8da51..81b7640 100755
--- a/examples/tut7.py
+++ b/examples/tut7.py
@@ -14,8 +14,8 @@ class LCDRange(tqt.TQVBox):
self.slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
- self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)"))
- self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)"))
+ self.connect(self.slider, tqt.TQ_SIGNAL("valueChanged(int)"), lcd, tqt.TQ_SLOT("display(int)"))
+ self.connect(self.slider, tqt.TQ_SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)"))
def value(self):
return self.slider.value()
@@ -31,7 +31,7 @@ class MyWidget(tqt.TQVBox):
quit = tqt.TQPushButton("Quit", self, "quit")
quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold))
- self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()"))
+ self.connect(quit, tqt.TQ_SIGNAL("clicked()"), tqt.tqApp, tqt.TQ_SLOT("quit()"))
grid = tqt.TQGrid(4, self)