diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:05:23 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:05:23 -0600 |
commit | 6677c2f8c66333c3951e8830f8760065c7a29074 (patch) | |
tree | e45d51b044ce8575210fca1584852fbbe4742316 /doc/dcopext.html | |
parent | 1d7616d07ef6f1e6c8131a861ddff208557825e3 (diff) | |
download | pytde-6677c2f8c66333c3951e8830f8760065c7a29074.tar.gz pytde-6677c2f8c66333c3951e8830f8760065c7a29074.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'doc/dcopext.html')
-rw-r--r-- | doc/dcopext.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/dcopext.html b/doc/dcopext.html index 48d41a5..3f96826 100644 --- a/doc/dcopext.html +++ b/doc/dcopext.html @@ -92,7 +92,7 @@ object names have this property). import dcopext # ! other imports not shown ! -app = KApplication () +app = TDEApplication () dcop = app.dcopClient () d = dcopext.DCOPApp ("kicker", dcop) @@ -101,7 +101,7 @@ ok, panelPos = d.Panel.panelPosition () </PRE></TD></TR></TABLE> <p> That's all there's to it in this case. We import dcopext, which contains the client extension -classes; from the KApplication instance, we "borrow" the DCOPClient instance (dcop); we create a +classes; from the TDEApplication instance, we "borrow" the DCOPClient instance (dcop); we create a DCOPApp instance, passing it the name of the app ("kicker") and the DCOPClient instance; we call kicker's Panel object's panelPosition method (d.Panel.panelPosition); lastly, the integer value is returned to our application (panelPos) as the second item in a tuple - the first element @@ -146,7 +146,7 @@ full id (app name + pid - eg konqueror-14409) when constructing DCOPApp or DCOPO </p> <p> If you instantiate the application you want to communicate with from your own application (that -will be making the DCOP calls), methods like KApplication.startServiceByDesktopName will +will be making the DCOP calls), methods like TDEApplication.startServiceByDesktopName will let you start the app and also return both the PID of the started app and the complete identifier string needed to initiate DCOP communications. The identifier's name portion may or may not be the same as the name of the application (see the example_dcopexport.py example program, |