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/tut2.py | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'examples2/tut2.py')
-rwxr-xr-x | examples2/tut2.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples2/tut2.py b/examples2/tut2.py index a31b784..48ddb89 100755 --- a/examples2/tut2.py +++ b/examples2/tut2.py @@ -1,18 +1,18 @@ #!/usr/bin/env python -# Qt tutorial 2. +# TQt tutorial 2. import sys from qt import * -a = QApplication(sys.argv) +a = TQApplication(sys.argv) -quit = QPushButton("Quit",None) +quit = TQPushButton("Quit",None) quit.resize(75,30) -quit.setFont(QFont("Times",18,QFont.Bold)) +quit.setFont(TQFont("Times",18,TQFont.Bold)) -QObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()")) +TQObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()")) a.setMainWidget(quit) quit.show() |