diff options
author | Timothy Pearson <[email protected]> | 2012-02-27 17:38:16 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-27 17:38:16 -0600 |
commit | 104997c6f7b545c0095fdc1b1573367bc4cb4d5b (patch) | |
tree | cb6ae5f9464208d78cb51515f5a3c3a0a7edc64f /examples3/desktop.py | |
parent | e87fff3247e64b4e9509be991a8f2d6bd4ccfacc (diff) | |
download | pytqt-104997c6f7b545c0095fdc1b1573367bc4cb4d5b.tar.gz pytqt-104997c6f7b545c0095fdc1b1573367bc4cb4d5b.zip |
Rename tqt3 color functions
Diffstat (limited to 'examples3/desktop.py')
-rwxr-xr-x | examples3/desktop.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples3/desktop.py b/examples3/desktop.py index 46c41dc..393558b 100755 --- a/examples3/desktop.py +++ b/examples3/desktop.py @@ -84,7 +84,7 @@ def rotate(): h = 64 image = TQImage(w, h, 8, 128) for i in range(128): - image.setColor(i, qRgb(i,0,0)) + image.setColor(i, tqRgb(i,0,0)) for y in range(h): for x in range(w): image.setPixel(x,y,(x+y)%128) @@ -159,12 +159,12 @@ class DesktopWidget(TQWidget): def desktopWidget(s='Trolltech'): t = DesktopWidget(s) t.update() - qApp.exec_loop() + tqApp.exec_loop() def desktopText(s='Trolltech'): border = 20 - c1 = qApp.palette().normal().background() + c1 = tqApp.palette().normal().background() c2 = c1.light(104) c3 = c1.dark(106) @@ -174,8 +174,8 @@ def desktopText(s='Trolltech'): r = p.fontMetrics().boundingRect(s) p.end() - appWidth = qApp.desktop().width() - appHeight = qApp.desktop().height() + appWidth = tqApp.desktop().width() + appHeight = tqApp.desktop().height() if r.width() > appWidth - border*2: r.setWidth(appWidth - border*2) if r.height() > appHeight - border*2: @@ -187,7 +187,7 @@ def desktopText(s='Trolltech'): drawShadeText(p, -r.x()+border, -r.y()+border, s, c2, c3) p.end() - qApp.desktop().setErasePixmap(pm) + tqApp.desktop().setErasePixmap(pm) a = TQApplication(sys.argv) if len(sys.argv) > 1: |