summaryrefslogtreecommitdiffstats
path: root/examples/pytde-sampler/sampler.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/pytde-sampler/sampler.py
parent77ad361b74e6bda59916cc01c13c0b44306d730e (diff)
downloadpytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.tar.gz
pytde-f49521ca3d0cbf2197b353a7c35f924e7b5b89ff.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'examples/pytde-sampler/sampler.py')
-rwxr-xr-xexamples/pytde-sampler/sampler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py
index 30e1828..eb485ac 100755
--- a/examples/pytde-sampler/sampler.py
+++ b/examples/pytde-sampler/sampler.py
@@ -15,7 +15,7 @@ from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
from tdecore import i18n, TDEAboutData, TDEApplication, TDECmdLineArgs, TDEGlobal
-from tdecore import TDEGlobalSettings, KWin, KWinModule, KURL, KIcon
+from tdecore import TDEGlobalSettings, KWin, KWinModule, KURL, TDEIcon
from tdeui import KComboBox, TDEListView, TDEListViewItem, KTabWidget, KTextEdit
from tdeui import TDEMainWindow, KPushButton, KSplashScreen, KStdAction
@@ -52,14 +52,14 @@ def appConfig(group=None):
return config
-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
"""