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 --- examples3/gears.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples3/gears.py') diff --git a/examples3/gears.py b/examples3/gears.py index c89a7a2..a9f6bba 100755 --- a/examples3/gears.py +++ b/examples3/gears.py @@ -129,9 +129,9 @@ def gear(inner_radius,outer_radius,width,teeth,tooth_depth): glEnd() ############################################################################## -class GearWidget(QGLWidget): +class GearWidget(TQGLWidget): def __init__(self,parent=None,name=None): - QGLWidget.__init__(self,parent,name) + TQGLWidget.__init__(self,parent,name) self.angle=0.0 self.view_rotx=0.0 @@ -223,11 +223,11 @@ class GearWidget(QGLWidget): ############################################################################## if __name__=='__main__': - QApplication.setColorSpec(QApplication.CustomColor) - app=QApplication(sys.argv) + TQApplication.setColorSpec(TQApplication.CustomColor) + app=TQApplication(sys.argv) - if not QGLFormat.hasOpenGL(): - raise 'No Qt OpenGL support.' + if not TQGLFormat.hasOpenGL(): + raise 'No TQt OpenGL support.' widget=GearWidget() app.setMainWidget(widget) -- cgit v1.2.3