summaryrefslogtreecommitdiffstats
path: root/examples2/gears.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-29 01:11:08 -0600
committerTimothy Pearson <[email protected]>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /examples2/gears.py
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'examples2/gears.py')
-rwxr-xr-xexamples2/gears.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples2/gears.py b/examples2/gears.py
index bf5b913..3e10a67 100755
--- a/examples2/gears.py
+++ b/examples2/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)