diff options
author | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /examples2/gears.py | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'examples2/gears.py')
-rwxr-xr-x | examples2/gears.py | 12 |
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) |