summaryrefslogtreecommitdiffstats
path: root/examples/kurldemo.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/kurldemo.py')
-rw-r--r--examples/kurldemo.py16
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")