diff options
Diffstat (limited to 'examples2/desktop.py')
-rwxr-xr-x | examples2/desktop.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples2/desktop.py b/examples2/desktop.py index cc0c97f..a2cccb1 100755 --- a/examples2/desktop.py +++ b/examples2/desktop.py @@ -83,7 +83,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) @@ -158,12 +158,12 @@ class DesktopWidget(TQWidget): def desktopWidget(s='Troll Tech'): t = DesktopWidget(s) t.update() - qApp.exec_loop() + tqApp.exec_loop() def desktopText(s='Troll Tech'): border = 20 - c1 = qApp.palette().normal().background() + c1 = tqApp.palette().normal().background() c2 = c1.light(104) c3 = c1.dark(106) @@ -173,8 +173,8 @@ def desktopText(s='Troll Tech'): 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: @@ -186,7 +186,7 @@ def desktopText(s='Troll Tech'): drawShadeText(p, -r.x()+border, -r.y()+border, s, c2, c3) p.end() - qApp.desktop().setBackgroundPixmap(pm) + tqApp.desktop().setBackgroundPixmap(pm) a = TQApplication(sys.argv) if len(sys.argv) > 1: |