summaryrefslogtreecommitdiffstats
path: root/examples3/canvas/canvas.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 17:38:16 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 17:38:16 -0600
commit104997c6f7b545c0095fdc1b1573367bc4cb4d5b (patch)
treecb6ae5f9464208d78cb51515f5a3c3a0a7edc64f /examples3/canvas/canvas.py
parente87fff3247e64b4e9509be991a8f2d6bd4ccfacc (diff)
downloadpytqt-104997c6f7b545c0095fdc1b1573367bc4cb4d5b.tar.gz
pytqt-104997c6f7b545c0095fdc1b1573367bc4cb4d5b.zip
Rename tqt3 color functions
Diffstat (limited to 'examples3/canvas/canvas.py')
-rwxr-xr-xexamples3/canvas/canvas.py14
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()