summaryrefslogtreecommitdiffstats
path: root/examples/uiqxembed.py
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-03 15:29:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-07 22:14:56 +0900
commit4ce11cc30df1805459a615960fdec204a975548a (patch)
tree084f1e1fa404bdf0d082b1a58acf392b5d177326 /examples/uiqxembed.py
parent065f41b4908b11278d4334e8c85150ec0fd4a9f6 (diff)
downloadpytde-4ce11cc30df1805459a615960fdec204a975548a.tar.gz
pytde-4ce11cc30df1805459a615960fdec204a975548a.zip
Drop python2 support.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/uiqxembed.py')
-rw-r--r--examples/uiqxembed.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/uiqxembed.py b/examples/uiqxembed.py
index 341cc3a..21e31da 100644
--- a/examples/uiqxembed.py
+++ b/examples/uiqxembed.py
@@ -69,7 +69,7 @@ class ExampleForm(QXEmbedExample):
self.launchPid = pid ## cheap
TQTimer.singleShot(2000, self.embedLaunchedWindow)
else:
- print 'failed to start %s' % name
+ print('failed to start %s' % name)
return
def embedLaunchedWindow(self):
@@ -101,16 +101,16 @@ class ExampleMain(TDEMainWindow):
if __name__ == '__main__':
- aname = 'PyKDE QXEmbed Sample'
- desc = 'A Simple PyKDE QXEmbed Sample'
- ver = '1.0'
+ aname = b'PyTDE QXEmbed Sample'
+ desc = b'A Simple PyTDE QXEmbed Sample'
+ ver = b'1.0'
lic = TDEAboutData.License_GPL
- author = 'Troy Melhase'
- authormail = 'troy@gci.net'
+ author = b'Troy Melhase'
+ authormail = b'troy@gci.net'
- about = TDEAboutData(aname, aname, ver, desc, lic, '%s (c) 2004' % authormail)
- about.addAuthor(author, 'hi, mom!', authormail)
- about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com')
+ about = TDEAboutData(aname, aname, ver, desc, lic, b'troy@gci.net (c) 2004')
+ about.addAuthor(author, b'hi, mom!', authormail)
+ about.addAuthor (b'Jim Bublitz', b'For PyTDE', b'jbublitz@nwinternet.com')
TDECmdLineArgs.init(sys.argv, about)
app = TDEApplication()
mainWindow = ExampleMain()