summaryrefslogtreecommitdiffstats
path: root/examples3/tut5.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/tut5.py')
-rwxr-xr-xexamples3/tut5.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples3/tut5.py b/examples3/tut5.py
index 88a2447..f084cdb 100755
--- a/examples3/tut5.py
+++ b/examples3/tut5.py
@@ -1,30 +1,30 @@
#!/usr/bin/env python
-# Qt tutorial 5.
+# TQt tutorial 5.
import sys
import qt
-class MyWidget(qt.QVBox):
+class MyWidget(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- quit = qt.QPushButton("Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
- lcd = qt.QLCDNumber(2, self, "lcd")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
- slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
slider.setRange(0, 99)
slider.setValue(0)
self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)