From 8a055d66f43592c257cece2eb8cc021808062917 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 29 Nov 2011 01:11:08 -0600 Subject: Initial TQt conversion --- examples2/tut5.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'examples2/tut5.py') diff --git a/examples2/tut5.py b/examples2/tut5.py index 01c20aa..e7662fb 100755 --- a/examples2/tut5.py +++ b/examples2/tut5.py @@ -1,30 +1,30 @@ #!/usr/bin/env python -# Qt tutorial 5. +# TQt tutorial 5. import sys from qt import * -class MyWidget(QVBox): +class MyWidget(TQVBox): def __init__(self,parent=None,name=None): - QVBox.__init__(self,parent,name) + TQVBox.__init__(self,parent,name) - quit = QPushButton("Quit",self,"quit") - quit.setFont(QFont("Times",18,QFont.Bold)) + quit = TQPushButton("Quit",self,"quit") + quit.setFont(TQFont("Times",18,TQFont.Bold)) self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()")) - lcd = QLCDNumber(2,self,"lcd") + lcd = TQLCDNumber(2,self,"lcd") - slider = QSlider(Qt.Horizontal,self,"slider") + slider = TQSlider(TQt.Horizontal,self,"slider") slider.setRange(0,99) slider.setValue(0) self.connect(slider,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)")) -a = QApplication(sys.argv) +a = TQApplication(sys.argv) w = MyWidget() a.setMainWidget(w) -- cgit v1.2.3