summaryrefslogtreecommitdiffstats
path: root/examples/mimetype.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:09:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:09:42 -0600
commit2df6bde18ab40472f2df8637cf6456cb80dc2329 (patch)
tree5a4362124ff46786fce835d2f1e7d583c92a5670 /examples/mimetype.py
parentbe6cfa4b990910e65e8d2f4f212eba3f7da6ee72 (diff)
downloadpytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.tar.gz
pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'examples/mimetype.py')
-rw-r--r--examples/mimetype.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/mimetype.py b/examples/mimetype.py
index ca99534..6d66c32 100644
--- a/examples/mimetype.py
+++ b/examples/mimetype.py
@@ -42,12 +42,12 @@ import sys
from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem
from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, KURL
-from tdeui import KMainWindow, KTabCtl, KListBox
+from tdeui import TDEMainWindow, KTabCtl, TDEListBox
from kio import KMimeType, KService, KServiceGroup, KServiceType, TDETrader, KServiceTypeProfile, KServiceGroup
-class MainWin (KMainWindow):
+class MainWin (TDEMainWindow):
def __init__ (self, *args):
- apply (KMainWindow.__init__, (self,) + args)
+ apply (TDEMainWindow.__init__, (self,) + args)
tabctl = KTabCtl (self)
self.setGeometry (0, 0, 600, 400)
@@ -176,7 +176,7 @@ class KMimeTypeTab (TQWidget):
self.setGeometry (0, 0, 500, 370)
lbLbl = TQLabel ("All Mimetypes", self)
lbLbl.setGeometry (10, 10, 150, 20)
- lb = KListBox (self)
+ lb = TDEListBox (self)
lb.setGeometry (10, 30, 200, 300)
mlist = KMimeType.allMimeTypes ()
lblist = []