summaryrefslogtreecommitdiffstats
path: root/examples/example_dcopexport.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
committerTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /examples/example_dcopexport.py
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'examples/example_dcopexport.py')
-rw-r--r--examples/example_dcopexport.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/example_dcopexport.py b/examples/example_dcopexport.py
index 024b60f..70b4e9c 100644
--- a/examples/example_dcopexport.py
+++ b/examples/example_dcopexport.py
@@ -36,7 +36,7 @@ copyright holder.
import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData
from dcopexport import DCOPExObj
-from qt import QString, QStringList
+from qt import TQString, TQStringList
"""
DCOPExObj provides all of the necessary machinery to DCOP-enable
@@ -72,13 +72,13 @@ class DeadParrotObject (DCOPExObj):
# the methods available from this app via DCOP
# addMethod (<signature>, <Python method>)
- self.addMethod ('QString getParrotType()', self.get_type)
- self.addMethod ('void setParrotType (QString)', self.set_type)
- self.addMethod ('QString squawk()', self.squawk)
- self.addMethod ('QStringList adjectives()', self.adjectives)
+ self.addMethod ('TQString getParrotType()', self.get_type)
+ self.addMethod ('void setParrotType (TQString)', self.set_type)
+ self.addMethod ('TQString squawk()', self.squawk)
+ self.addMethod ('TQStringList adjectives()', self.adjectives)
# set up object variables
- self.parrot_type = QString ("Norwegian Blue")
+ self.parrot_type = TQString ("Norwegian Blue")
def get_type (self):
return self.parrot_type
@@ -94,7 +94,7 @@ class DeadParrotObject (DCOPExObj):
"a stiff", "bereft of life", "rests in peace", "metabolic processes are now history",
"off the twig", "kicked the bucket", "shuffled off his mortal coil",
"run down his curtain", "joined the bleedin' choir invisible", "THIS IS AN EX-PARROT"]
- qadjList = QStringList ()
+ qadjList = TQStringList ()
for adj in adjList:
qadjList.append (adj)