summaryrefslogtreecommitdiffstats
path: root/examples/uiqxembed.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:12:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:12:48 -0600
commitf49521ca3d0cbf2197b353a7c35f924e7b5b89ff (patch)
tree58fdba2caa721a57abc5ad2a293c978f57629778 /examples/uiqxembed.py
parent77ad361b74e6bda59916cc01c13c0b44306d730e (diff)
downloadpytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.tar.gz
pytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'examples/uiqxembed.py')
-rw-r--r--examples/uiqxembed.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/uiqxembed.py b/examples/uiqxembed.py
index 487016b..981ceb4 100644
--- a/examples/uiqxembed.py
+++ b/examples/uiqxembed.py
@@ -6,7 +6,7 @@ import sys
from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
-from tdecore import TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal, KIcon
+from tdecore import TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal, TDEIcon
from tdecore import KWin, KWinModule
from tdeui import KComboBox, TDEMainWindow, KPushButton, QXEmbed
@@ -19,13 +19,13 @@ qxembedexample.KPushButton = KPushButton
from qxembedexample import QXEmbedExample
-def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
+def getIcon(name, group=TDEIcon.NoGroup, size=TDEIcon.SizeSmall):
""" returns a kde icon by name
"""
return TDEGlobal.instance().iconLoader().loadIcon(name, group, size)
-def getIconSet(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
+def getIconSet(name, group=TDEIcon.NoGroup, size=TDEIcon.SizeSmall):
""" returns a kde icon set by name
"""