diff options
Diffstat (limited to 'examples3/canvas/canvas.py')
-rwxr-xr-x | examples3/canvas/canvas.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples3/canvas/canvas.py b/examples3/canvas/canvas.py index 7d36592..8c0998e 100755 --- a/examples3/canvas/canvas.py +++ b/examples3/canvas/canvas.py @@ -34,7 +34,7 @@ class ImageItem(TQCanvasRectangle): if not self.image.valid( ix , iy ): return False self.pixel = self.image.pixel( ix, iy ) - return (qAlpha( self.pixel ) != 0) + return (tqAlpha( self.pixel ) != 0) def drawShape(self,p): p.drawPixmap( self.x(), self.y(), self.pixmap ) @@ -212,7 +212,7 @@ class Main (TQMainWindow): file.insertSeparator(); file.insertItem("&Print", self._print, TQt.CTRL+TQt.Key_P) file.insertSeparator() - file.insertItem("E&xit", qApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q) + file.insertItem("E&xit", tqApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q) self.menuBar().insertItem("&File", file) edit = TQPopupMenu(self.menuBar() ) @@ -280,9 +280,9 @@ class Main (TQMainWindow): def newView(self): m=Main(self.canvas,None,"new windiw",TQt.WDestructiveClose) - qApp.setMainWidget(m) + tqApp.setMainWidget(m) m.show() - qApp.setMainWidget(None) + tqApp.setMainWidget(None) views.append(m) def clear(self): @@ -596,7 +596,7 @@ if __name__=='__main__': m=Main(canvas,None,"pyqt canvas example") m.resize(m.sizeHint()) - qApp.setMainWidget(m) + tqApp.setMainWidget(m) m.setCaption("TQt Canvas Example ported to PyTQt") if TQApplication.desktop().width() > m.width() + 10 and TQApplication.desktop().height() > m.height() + 30: m.show() @@ -605,9 +605,9 @@ if __name__=='__main__': m.show(); #// m.help(); - qApp.setMainWidget(None); + tqApp.setMainWidget(None); - TQObject.connect( qApp, SIGNAL("lastWindowClosed()"), qApp, SLOT("quit()") ) + TQObject.connect( tqApp, SIGNAL("lastWindowClosed()"), tqApp, SLOT("quit()") ) app.exec_loop() |