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 /examples3/tut4.py | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
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) |