diff options
Diffstat (limited to 'examples/mimetype.py')
-rw-r--r-- | examples/mimetype.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/mimetype.py b/examples/mimetype.py index 90ea660..ca99534 100644 --- a/examples/mimetype.py +++ b/examples/mimetype.py @@ -43,7 +43,7 @@ from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem from tdecore import TDEApplication, TDECmdLineArgs, TDEAboutData, KURL from tdeui import KMainWindow, KTabCtl, KListBox -from kio import KMimeType, KService, KServiceGroup, KServiceType, KTrader, KServiceTypeProfile, KServiceGroup +from kio import KMimeType, KService, KServiceGroup, KServiceType, TDETrader, KServiceTypeProfile, KServiceGroup class MainWin (KMainWindow): def __init__ (self, *args): @@ -86,9 +86,9 @@ class OfferListTab (TQWidget): TQListViewItem (lv, "Preferred", "--------", "", "") TQListViewItem (lv, "", "", "", "") - trader = KTrader.self () + trader = TDETrader.self () slist = trader.query ("image/jpeg", "Type == 'Application'") - print "KTrader returned:", slist + print "TDETrader returned:", slist for s in slist: lvi = TQListViewItem (lv, s.type_ (), s.name (), s.exec_ (), s.library ()) |