diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 10:48:05 -0600 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 10:48:05 -0600 |
| commit | 4f9367a19011b727951632ba7c8d9539c72be75d (patch) | |
| tree | 1c243c83ea93d66baaea66f51540b5b2ee2bb3e4 /examples/mimetype.py | |
| parent | 11ce0e9ead6ca61215b1bafdf6f4fb2151018c77 (diff) | |
| download | pytde-4f9367a19011b727951632ba7c8d9539c72be75d.tar.gz pytde-4f9367a19011b727951632ba7c8d9539c72be75d.zip | |
Rename KLock and KTrader to avoid conflicts with KDE4
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 ()) |
