diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /examples2/tut4.py | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
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) |