summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/mimetype.py6
-rw-r--r--examples/pyTDEHTMLPart.py2
-rw-r--r--examples/pytde-sampler/qt_widgets/CONTRIB2
-rwxr-xr-xexamples/pytde-sampler/sampler.py4
4 files changed, 7 insertions, 7 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 ())
diff --git a/examples/pyTDEHTMLPart.py b/examples/pyTDEHTMLPart.py
index e4e209f..4f31e2b 100644
--- a/examples/pyTDEHTMLPart.py
+++ b/examples/pyTDEHTMLPart.py
@@ -49,7 +49,7 @@ from tdeui import KMainWindow, KMessageBox, KAction, KStdAction, KKeyDialog, KEd
from qt import TQString, TQStringList
-from kio import KTrader
+from kio import TDETrader
from tdehtml import TDEHTMLPart, TDEHTMLView
diff --git a/examples/pytde-sampler/qt_widgets/CONTRIB b/examples/pytde-sampler/qt_widgets/CONTRIB
index 0c3ac50..1dd45b0 100644
--- a/examples/pytde-sampler/qt_widgets/CONTRIB
+++ b/examples/pytde-sampler/qt_widgets/CONTRIB
@@ -470,7 +470,7 @@ kio,KSycoca,,,
kio,KSycocaEntry,,,
kio,KSycocaFactory,,,
kio,KTar,,,
-kio,KTrader,,,
+kio,TDETrader,,,
kio,KURIFilter,,,
kio,KURIFilterData,,,
kio,KURIFilterPlugin,,,
diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py
index 2a8146e..dfb2a06 100755
--- a/examples/pytde-sampler/sampler.py
+++ b/examples/pytde-sampler/sampler.py
@@ -21,7 +21,7 @@ from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit
from tdeui import KMainWindow, KPushButton, KSplashScreen, KStdAction
from tdeui import KKeyDialog, KEditToolbar
-from kio import KTrader
+from kio import TDETrader
from tdeparts import createReadOnlyPart, createReadWritePart
from tdehtml import TDEHTMLPart
@@ -70,7 +70,7 @@ def buildPart(parent, query, constraint, writable=False):
""" builds the first available offered part on the parent
"""
- offers = KTrader.self().query(query, constraint)
+ offers = TDETrader.self().query(query, constraint)
for ptr in offers:
if writable:
builder = createReadWritePart