summaryrefslogtreecommitdiffstats
path: root/examples3/tut2.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /examples3/tut2.py
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'examples3/tut2.py')
-rwxr-xr-xexamples3/tut2.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples3/tut2.py b/examples3/tut2.py
index 8b6a076..0234d48 100755
--- a/examples3/tut2.py
+++ b/examples3/tut2.py
@@ -1,18 +1,18 @@
#!/usr/bin/env python
-# Qt tutorial 2.
+# TQt tutorial 2.
import sys
import qt
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
-quit = qt.QPushButton("Quit", None)
+quit = qt.TQPushButton("Quit", None)
quit.resize(75, 30)
-quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
-qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
+qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
a.setMainWidget(quit)
quit.show()