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