diff options
Diffstat (limited to 'examples3/tut4.py')
-rwxr-xr-x | examples3/tut4.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3/tut4.py b/examples3/tut4.py index 968d325..41417f5 100755 --- a/examples3/tut4.py +++ b/examples3/tut4.py @@ -3,7 +3,7 @@ # TQt tutorial 4. import sys -import qt +from python_tqt import qt class MyWidget(qt.TQWidget): @@ -17,7 +17,7 @@ class MyWidget(qt.TQWidget): quit.setGeometry(62, 40, 75, 30) quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) + self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) a = qt.TQApplication(sys.argv) |