summaryrefslogtreecommitdiffstats
path: root/examples/tqmag.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tqmag.py')
-rwxr-xr-xexamples/tqmag.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/tqmag.py b/examples/tqmag.py
index df4a85d..1a7e448 100755
--- a/examples/tqmag.py
+++ b/examples/tqmag.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#****************************************************************************
-#** $Id: qmag.py,v 1.1 2002/06/20 18:52:31 phil Exp $
+#** $Id: tqmag.py,v 1.1 2002/06/20 18:52:31 phil Exp $
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
@@ -27,7 +27,7 @@ timer = (0, 20, 250, 333, 500, 1000, 2000, 3000, 5000, 10000)
class MagWidget(TQWidget):
def __init__(self, tqApp, parent = None, name = None):
- self.qApp = tqApp
+ self.tqApp = tqApp
TQWidget.__init__(self, parent, name)
self.pm = TQPixmap() # pixmap magnified
self.p = TQPixmap() # pixmap
@@ -70,7 +70,7 @@ class MagWidget(TQWidget):
10 + self.saveButton.fontMetrics().width("Save"), h)
self.quitButton = TQPushButton(self)
- self.connect(self.quitButton, SIGNAL("clicked()"), self.qApp, SLOT("quit()"))
+ self.connect(self.quitButton, SIGNAL("clicked()"), self.tqApp, SLOT("quit()"))
self.quitButton.setText("Quit")
self.quitButton.setGeometry(self.saveButton.geometry().right() + 2, 2,
10 + self.quitButton.fontMetrics().width("Quit"), h)
@@ -87,8 +87,8 @@ class MagWidget(TQWidget):
self.resize(w, w)
self.setMouseTracking(TRUE)
- self.grabx = self.qApp.desktop().width() / 2
- self.graby = self.qApp.desktop().height() / 2
+ self.grabx = self.tqApp.desktop().width() / 2
+ self.graby = self.tqApp.desktop().height() / 2
self.grabAround(TQPoint(self.grabx, self.graby))
#self.zoom.setCurrentItem(1) # grabAround sets zoom factor