diff options
Diffstat (limited to 'examples3/tut4.py')
-rwxr-xr-x | examples3/tut4.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples3/tut4.py b/examples3/tut4.py index 9ad05c7..968d325 100755 --- a/examples3/tut4.py +++ b/examples3/tut4.py @@ -1,26 +1,26 @@ #!/usr/bin/env python -# Qt tutorial 4. +# TQt tutorial 4. import sys import qt -class MyWidget(qt.QWidget): +class MyWidget(qt.TQWidget): def __init__(self, parent=None, name=None): - qt.QWidget.__init__(self, parent, name) + qt.TQWidget.__init__(self, parent, name) self.setMinimumSize(200, 120) self.setMaximumSize(200, 120) - quit = qt.QPushButton("Quit", self, "quit") + quit = qt.TQPushButton("Quit", self, "quit") quit.setGeometry(62, 40, 75, 30) - quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold)) + quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) -a = qt.QApplication(sys.argv) +a = qt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 200, 120) |