diff options
Diffstat (limited to 'examples/uimodules/uidialogs.py')
-rw-r--r-- | examples/uimodules/uidialogs.py | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/examples/uimodules/uidialogs.py b/examples/uimodules/uidialogs.py index 12ad10f..697deb8 100644 --- a/examples/uimodules/uidialogs.py +++ b/examples/uimodules/uidialogs.py @@ -16,11 +16,6 @@ Information = 4 Sorry = 5 Error = 6 -# Python 2.2.2 supplies these, but they're duplicated here -# for backward compatibility -False = 0 -True = 1 - class CustomDlg (KDialog): def __init__ (self, parent, name = "custom dlg", modal = False): KDialog.__init__ (self, parent, name, modal) @@ -127,10 +122,10 @@ class MessageDlg (KDialog): def dlgTDEAboutDialog (parent): dlg = TDEAboutDialog (parent, 'about dialog', False) dlg.setLogo (TQPixmap ("pytestimage.png")) - dlg.setTitle ("UISampler for PyKDE") + dlg.setTitle ("UISampler for PyTDE") dlg.setAuthor ("Jim Bublitz", "jbublitz@nwinternet.com", "http://www.riverbankcomputing.co.uk",\ - "\n\nPyKDE -- Python bindings\n\tfor KDE") - dlg.addContributor ("PyKDE list", "pytde@mats.gmd.de", TQString.null, TQString.null) + "\n\nPyTDE -- Python bindings\n\tfor TDE") + dlg.addContributor ("PyTDE list", "pytde@mats.gmd.de", TQString.null, TQString.null) dlg.show () @@ -189,8 +184,8 @@ def dlgKKeyDialog (parent): def dlgKLineEditDlg (parent): result, ok = KLineEditDlg.getText ("Enter text", "<Your input here>", parent) - print "result", result - print "ok", ok + print("result", result) + print("ok", ok) # pop up another dlg to show what happened in the KLineEditDlg if ok: @@ -227,6 +222,6 @@ def dlgKWizard (parent): wiz.show () if __name__ == "__main__": - print - print "Please run uisampler.py" - print
\ No newline at end of file + print() + print("Please run uisampler.py") + print() |