summaryrefslogtreecommitdiffstats
path: root/examples/systray.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-04 14:12:48 -0600
committerTimothy Pearson <[email protected]>2013-02-04 14:12:48 -0600
commitf49521ca3d0cbf2197b353a7c35f924e7b5b89ff (patch)
tree58fdba2caa721a57abc5ad2a293c978f57629778 /examples/systray.py
parent77ad361b74e6bda59916cc01c13c0b44306d730e (diff)
downloadpytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.tar.gz
pytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'examples/systray.py')
-rw-r--r--examples/systray.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/systray.py b/examples/systray.py
index cc7a40a..0eeb6b7 100644
--- a/examples/systray.py
+++ b/examples/systray.py
@@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import TQLabel
-from tdecore import TDEApplication, KIcon, KIconLoader
+from tdecore import TDEApplication, TDEIcon, TDEIconLoader
from tdeui import TDEMainWindow, KSystemTray
class MainWin (TDEMainWindow):
@@ -42,10 +42,10 @@ class MainWin (TDEMainWindow):
appName = "template"
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
-icons = KIconLoader ()
+icons = TDEIconLoader ()
systray = KSystemTray (mainWindow)
-systray.setPixmap (icons.loadIcon("stop", KIcon.Desktop))
+systray.setPixmap (icons.loadIcon("stop", TDEIcon.Desktop))
systray.show ()
#mainWindow.show()