summaryrefslogtreecommitdiffstats
path: root/examples3/gears.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/gears.py')
-rwxr-xr-xexamples3/gears.py12
1 files changed, 6 insertions, 6 deletions
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)