summaryrefslogtreecommitdiffstats
path: root/examples/tut4.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tut4.py')
-rwxr-xr-xexamples/tut4.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/tut4.py b/examples/tut4.py
index 04e0a61..f61a054 100755
--- a/examples/tut4.py
+++ b/examples/tut4.py
@@ -3,24 +3,24 @@
# TQt tutorial 4.
import sys
-from PyTQt import qt
+from PyTQt import tqt
-class MyWidget(qt.TQWidget):
+class MyWidget(tqt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.TQWidget.__init__(self, parent, name)
+ tqt.TQWidget.__init__(self, parent, name)
self.setMinimumSize(200, 120)
self.setMaximumSize(200, 120)
- quit = qt.TQPushButton("Quit", self, "quit")
+ quit = tqt.TQPushButton("Quit", self, "quit")
quit.setGeometry(62, 40, 75, 30)
- quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
+ quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold))
- self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()"))
+ self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()"))
-a = qt.TQApplication(sys.argv)
+a = tqt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 200, 120)