diff options
Diffstat (limited to 'examples/widgets.py')
-rwxr-xr-x | examples/widgets.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/widgets.py b/examples/widgets.py index d9f554d..59a44c4 100755 --- a/examples/widgets.py +++ b/examples/widgets.py @@ -2,7 +2,7 @@ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * # ## Constructs an analog clock widget that uses an internal TQTimer. @@ -36,7 +36,7 @@ class AnalogClock( TQWidget ): # ## The clock is painted using a 1000x1000 square coordinate system. # - def paintEvent( self, qe ): # paint clock + def paintEvent( self, tqe ): # paint clock if not self.isVisible(): # is is invisible return self.time = TQTime.currentTime() # save current time @@ -192,10 +192,10 @@ class WidgetView ( TQWidget ): self.connect( self.pb, SIGNAL("clicked()"), self.button1Clicked ) TQToolTip.add( self.pb, "push button 1" ) self.pm = TQPixmap() - self.pix = self.pm.load( "qt.png" ) # load pixmap for button 2 + self.pix = self.pm.load( "tqt.png" ) # load pixmap for button 2 if not self.pix: TQMessageBox.information( None, "TQt Widgets Example", - "Could not load the file \"qt.png\", which\n" + "Could not load the file \"tqt.png\", which\n" "contains an icon used...\n\n" "The text \"line 42\" will be substituted.", TQMessageBox.Ok + TQMessageBox.Default ) |