diff options
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: |