summaryrefslogtreecommitdiffstats
path: root/examples/tut3.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tut3.py')
-rwxr-xr-xexamples/tut3.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/tut3.py b/examples/tut3.py
index 85c3dc6..6cb1305 100755
--- a/examples/tut3.py
+++ b/examples/tut3.py
@@ -3,18 +3,18 @@
# TQt tutorial 3.
import sys
-from PyTQt import qt
+from PyTQt import tqt
-a = qt.TQApplication(sys.argv)
+a = tqt.TQApplication(sys.argv)
-box = qt.TQVBox()
+box = tqt.TQVBox()
box.resize(200, 120)
-quit = qt.TQPushButton("Quit", box)
-quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
+quit = tqt.TQPushButton("Quit", box)
+quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold))
-qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
+qt.TQObject.connect(quit, tqt.SIGNAL("clicked()"), a, tqt.SLOT("quit()"))
a.setMainWidget(box)
box.show()