diff options
Diffstat (limited to 'examples3/qmag.py')
-rwxr-xr-x | examples3/qmag.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples3/qmag.py b/examples3/qmag.py index d52a48c..28725e5 100755 --- a/examples3/qmag.py +++ b/examples3/qmag.py @@ -26,8 +26,8 @@ refreshrates = [ timer = (0, 20, 250, 333, 500, 1000, 2000, 3000, 5000, 10000) class MagWidget(TQWidget): - def __init__(self, qApp, parent = None, name = None): - self.qApp = qApp + def __init__(self, tqApp, parent = None, name = None): + self.qApp = tqApp TQWidget.__init__(self, parent, name) self.pm = TQPixmap() # pixmap magnified self.p = TQPixmap() # pixmap @@ -210,8 +210,8 @@ class MagWidget(TQWidget): if self.image.valid(x, y): px = self.image.pixel(x, y) pixelinfo = "%3d,%3d,%3d #%02x%02x%02x" % ( - qRed(px), qGreen(px), qBlue(px), - qRed(px), qGreen(px), qBlue(px)) + tqRed(px), tqGreen(px), tqBlue(px), + tqRed(px), tqGreen(px), tqBlue(px)) self.rgb.setText("x=%d, y=%d %s" % \ (x + self.grabx, y + self.graby, pixelinfo)) |