summaryrefslogtreecommitdiffstats
path: root/examples/uitdemdi.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uitdemdi.py')
-rw-r--r--examples/uitdemdi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/uitdemdi.py b/examples/uitdemdi.py
index 7177a16..dfcaa74 100644
--- a/examples/uitdemdi.py
+++ b/examples/uitdemdi.py
@@ -29,7 +29,7 @@ import os
import sys
from qt import SIGNAL, TQVBoxLayout, TQLabel
-from tdecore import i18n, TDEAboutData, TDEApplication, TDEGlobal, KIcon, TDECmdLineArgs
+from tdecore import i18n, TDEAboutData, TDEApplication, TDEGlobal, TDEIcon, TDECmdLineArgs
from tdeui import KDockWidget, TDEListBox, KStdAction
try:
@@ -44,7 +44,7 @@ sigChildViewActivated = SIGNAL('viewActivated(KMdiChildView *)')
sigBoxSelectionChanged = SIGNAL('selectionChanged(TQListBoxItem *)')
-def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
+def getIcon(name, group=TDEIcon.NoGroup, size=TDEIcon.SizeSmall):
""" returns a kde icon by name
"""
@@ -132,7 +132,7 @@ class KmdiExample(KMdiMainFrm):
lbl = i18n('Label for a view with an icon named %s' % text)
lbl = TQLabel(lbl, view)
pxm = TQLabel('', view)
- pxm.setPixmap(getIcon(icon, size=KIcon.SizeLarge))
+ pxm.setPixmap(getIcon(icon, size=TDEIcon.SizeLarge))
self.addWindow(view)
self.mainToolWidget.insertItem(label)