diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-03 15:29:41 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-07 22:14:56 +0900 |
commit | 4ce11cc30df1805459a615960fdec204a975548a (patch) | |
tree | 084f1e1fa404bdf0d082b1a58acf392b5d177326 /examples/kurldemo.py | |
parent | 065f41b4908b11278d4334e8c85150ec0fd4a9f6 (diff) | |
download | pytde-4ce11cc30df1805459a615960fdec204a975548a.tar.gz pytde-4ce11cc30df1805459a615960fdec204a975548a.zip |
Drop python2 support.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/kurldemo.py')
-rw-r--r-- | examples/kurldemo.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/kurldemo.py b/examples/kurldemo.py index badec04..cddb9a4 100644 --- a/examples/kurldemo.py +++ b/examples/kurldemo.py @@ -36,7 +36,7 @@ from tdeui import TDEMainWindow, KEdit class MainWin (TDEMainWindow): def __init__ (self, *args): - apply (TDEMainWindow.__init__, (self,) + args) + TDEMainWindow.__init__(self, *args) self.setGeometry (0, 0, 400, 600) @@ -79,18 +79,18 @@ class MainWin (TDEMainWindow): #-------------------- main ------------------------------------------------ -description = "A basic application template" -version = "1.0" -aboutData = TDEAboutData ("", "",\ +description = b"A basic application template" +version = b"1.0" +aboutData = TDEAboutData (b"MyApp", b"MyApp",\ version, description, TDEAboutData.License_GPL,\ - "(C) 2003 whoever the author is") + b"(C) 2003 whoever the author is") -aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") -aboutData.addAuthor ("author2", "they did something else", "another@email.address") +aboutData.addAuthor (b"author1", b"whatever they did", b"email@somedomain") +aboutData.addAuthor (b"author2", b"they did something else", b"another@email.address") TDECmdLineArgs.init (sys.argv, aboutData) -TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([(b"+files", b"File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") |