From 2df6bde18ab40472f2df8637cf6456cb80dc2329 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:09:42 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- examples/mimetype.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/mimetype.py') 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 = [] -- cgit v1.2.3