summaryrefslogtreecommitdiffstats
path: root/examples/example_dcopext.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-20 00:05:23 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-20 00:05:23 -0600
commit6677c2f8c66333c3951e8830f8760065c7a29074 (patch)
treee45d51b044ce8575210fca1584852fbbe4742316 /examples/example_dcopext.py
parent1d7616d07ef6f1e6c8131a861ddff208557825e3 (diff)
downloadpytde-6677c2f8c66333c3951e8830f8760065c7a29074.tar.gz
pytde-6677c2f8c66333c3951e8830f8760065c7a29074.zip
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'examples/example_dcopext.py')
-rw-r--r--examples/example_dcopext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/example_dcopext.py b/examples/example_dcopext.py
index a099904..05a906d 100644
--- a/examples/example_dcopext.py
+++ b/examples/example_dcopext.py
@@ -30,7 +30,7 @@ copyright holder.
import sys, time
import dcop
import dcopext
-from tdecore import KApplication, KCmdLineArgs, KAboutData
+from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from qt import TQString, TQCString
@@ -65,7 +65,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
-app = KApplication ()
+app = TDEApplication ()
dcop = app.dcopClient ()
#getAnyApplication (dcop, "konqueror")
@@ -118,7 +118,7 @@ print "--------------------------"
print
print
print "Start a kwrite instance"
-errcode, error, dcopService, pid = KApplication.startServiceByDesktopName ("kwrite", "")
+errcode, error, dcopService, pid = TDEApplication.startServiceByDesktopName ("kwrite", "")
dcopService = "kwrite-" + str (pid)
print "errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid)
print "--------------------------"