diff options
Diffstat (limited to 'examples/pytde-sampler/dialogs')
-rw-r--r-- | examples/pytde-sampler/dialogs/__init__.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/about/__init__.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/about/abouttde.py (renamed from examples/pytde-sampler/dialogs/about/aboutkde.py) | 6 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/bugreport.py | 4 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/color.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/edfind.py | 12 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/edreplace.py | 12 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/font.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/msgbox.py | 24 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/passwd.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/progress.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/tip.py | 2 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/tips | 8 |
13 files changed, 40 insertions, 40 deletions
diff --git a/examples/pytde-sampler/dialogs/__init__.py b/examples/pytde-sampler/dialogs/__init__.py index c9c105a..caab63d 100644 --- a/examples/pytde-sampler/dialogs/__init__.py +++ b/examples/pytde-sampler/dialogs/__init__.py @@ -2,7 +2,7 @@ labelText = 'Dialog Boxes' iconName = 'launch' -helpText = ("KDE provides a convenient set of dialog boxes for application use. " +helpText = ("TDE provides a convenient set of dialog boxes for application use. " "Select the children of this item to see for yourself.") diff --git a/examples/pytde-sampler/dialogs/about/__init__.py b/examples/pytde-sampler/dialogs/about/__init__.py index 9fd612d..9d0092f 100644 --- a/examples/pytde-sampler/dialogs/about/__init__.py +++ b/examples/pytde-sampler/dialogs/about/__init__.py @@ -1,7 +1,7 @@ labelText = 'About Dialogs' iconName = 'info' -helpText = ("KDE has multiple dialog types to display information about your " +helpText = ("TDE has multiple dialog types to display information about your " "applicaiton and environment. They provide a tremendous amount of functionality " "and consistency. They're easy to use, and they're good for the environment!") diff --git a/examples/pytde-sampler/dialogs/about/aboutkde.py b/examples/pytde-sampler/dialogs/about/abouttde.py index e50c88d..43e354f 100644 --- a/examples/pytde-sampler/dialogs/about/aboutkde.py +++ b/examples/pytde-sampler/dialogs/about/abouttde.py @@ -1,5 +1,5 @@ iconName = 'about_kde' -labelText = 'TDEAboutKDE' +labelText = 'TDEAboutTDE' from PyTQt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n @@ -7,13 +7,13 @@ from tdeui import TDEAboutKDE, KPushButton, KTextEdit helpText = ("Typically available via the applications 'Help' menu, this " - "dialog presents the user with the standard KDE About dialog.") + "dialog presents the user with the standard TDE About dialog.") class MainFrame(TQFrame): def __init__(self, parent=None): TQFrame.__init__(self, parent) - self.button = KPushButton(i18n('About KDE'), self) + self.button = KPushButton(i18n('About TDE'), self) self.help = KTextEdit(helpText, '', self) layout = TQVBoxLayout(self, 4) layout.addWidget(self.help) diff --git a/examples/pytde-sampler/dialogs/bugreport.py b/examples/pytde-sampler/dialogs/bugreport.py index b06717c..74fce7e 100644 --- a/examples/pytde-sampler/dialogs/bugreport.py +++ b/examples/pytde-sampler/dialogs/bugreport.py @@ -1,7 +1,7 @@ iconName = 'core' labelText = 'KBugReport' -##~ if we wanted to, we could define the name of a KDE class used for lookup of +##~ if we wanted to, we could define the name of a TDE class used for lookup of ##~ the documentation url. The 'labelText' string above already ##~ specifies what we want. ##~ docItemName = 'KBugReport' @@ -11,7 +11,7 @@ from tdecore import i18n from tdeui import TDEAboutDialog, KPushButton, KBugReport, KTextEdit -helpText = ("KDE provides a way to report bugs from applications. This dialog" +helpText = ("TDE provides a way to report bugs from applications. This dialog" "is typically available from the application 'Help' menu.") diff --git a/examples/pytde-sampler/dialogs/color.py b/examples/pytde-sampler/dialogs/color.py index f9aeb0c..ea567e2 100644 --- a/examples/pytde-sampler/dialogs/color.py +++ b/examples/pytde-sampler/dialogs/color.py @@ -7,7 +7,7 @@ from tdecore import i18n from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit -helpText = ("KDE provides a nifty common color selection dialog." +helpText = ("TDE provides a nifty common color selection dialog." "The color selection in the dialog is tracked via a SIGNAL " "connected to the KColorPatch area below.") diff --git a/examples/pytde-sampler/dialogs/edfind.py b/examples/pytde-sampler/dialogs/edfind.py index 46258f5..aff61cb 100644 --- a/examples/pytde-sampler/dialogs/edfind.py +++ b/examples/pytde-sampler/dialogs/edfind.py @@ -34,18 +34,18 @@ class MainFrame(TQFrame): def doneClicked(self): - print 'done searching' + print('done searching') def searchClicked(self): - print 'searching: ', self.dlg.getText(), + print('searching: ', self.dlg.getText(), end=' ') if self.dlg.get_direction(): - print '(backwards) ', + print('(backwards) ', end=' ') else: - print '(forwards) ', + print('(forwards) ', end=' ') if self.dlg.case_sensitive(): - print '(case-sensitive)' + print('(case-sensitive)') else: - print '(case-insensitive)' + print('(case-insensitive)') diff --git a/examples/pytde-sampler/dialogs/edreplace.py b/examples/pytde-sampler/dialogs/edreplace.py index 1c4950b..31b03b9 100644 --- a/examples/pytde-sampler/dialogs/edreplace.py +++ b/examples/pytde-sampler/dialogs/edreplace.py @@ -33,19 +33,19 @@ class MainFrame(TQFrame): def doneClicked(self): - print 'done replacing' + print('done replacing') def replaceClicked(self): - print 'replacing: ', self.dlg.getText() + print('replacing: ', self.dlg.getText()) return if self.dlg.get_direction(): - print '(backwards) ', + print('(backwards) ', end=' ') else: - print '(forwards) ', + print('(forwards) ', end=' ') if self.dlg.case_sensitive(): - print '(case-sensitive)' + print('(case-sensitive)') else: - print '(case-insensitive)' + print('(case-insensitive)') diff --git a/examples/pytde-sampler/dialogs/font.py b/examples/pytde-sampler/dialogs/font.py index 175817a..298f44f 100644 --- a/examples/pytde-sampler/dialogs/font.py +++ b/examples/pytde-sampler/dialogs/font.py @@ -6,7 +6,7 @@ from tdeui import KPushButton, TDEFontDialog, KTextEdit iconName = 'fonts' labelText = 'TDEFontDialog' docParts = ('tdeui', 'TDEFontDialog') -helpText = ("KDE provides a font dialog box for users to select (can you " +helpText = ("TDE provides a font dialog box for users to select (can you " "guess??) fonts. The button below displays a font dialog box. " "The font of this widget (the text widget you're reading) is used " "as the default. If the dialog is accepted, the font of this " diff --git a/examples/pytde-sampler/dialogs/msgbox.py b/examples/pytde-sampler/dialogs/msgbox.py index 93f0d24..1ccfe3a 100644 --- a/examples/pytde-sampler/dialogs/msgbox.py +++ b/examples/pytde-sampler/dialogs/msgbox.py @@ -3,7 +3,7 @@ labelText = 'KMessageBox' from random import random from traceback import print_exc -from StringIO import StringIO +from io import StringIO from PyTQt.qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL from tdecore import i18n @@ -87,11 +87,11 @@ class MainFrame(TQFrame): def questionYesNo(self): dlg = KMessageBox.questionYesNo(self, self.msg, self.caption) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def warningYesNoCancel(self): dlg = KMessageBox.warningYesNoCancel(self, self.msg, self.caption) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def warningContinueCancelList(self): uiitem = KGuiItem('Time to Eat', 'favorites') @@ -99,43 +99,43 @@ class MainFrame(TQFrame): dlgid = '%s' % random() args = self, self.msg, self.items, self.caption, uiitem, dlgid dlg = ctor(*args) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def error(self): dlg = KMessageBox.error(self, self.err) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def detailedError(self): try: x = self.thisAttributeDoesNotExist - except (AttributeError, ), ex: + except (AttributeError, ) as ex: handle = StringIO() print_exc(0, handle) details = handle.getvalue() dlg = KMessageBox.detailedError(self, self.err, details) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def sorry(self): dlg = KMessageBox.sorry(self, self.err) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def detailedSorry(self): try: x = self.thisAttributeDoesNotExist - except (AttributeError, ), ex: + except (AttributeError, ) as ex: handle = StringIO() print_exc(0, handle) details = handle.getvalue() dlg = KMessageBox.detailedSorry(self, self.err, details) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def information(self): dlgid = '%s' % random() dlg = KMessageBox.information(self, self.info, '', dlgid) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) def informationList(self): dlgid = '%s' % random() ctor = KMessageBox.informationList dlg = ctor(self, self.info, self.items, '', dlgid) - print 'You pressed "%s"' % (self.responses.get(dlg, dlg), ) + print('You pressed "%s"' % (self.responses.get(dlg, dlg), )) diff --git a/examples/pytde-sampler/dialogs/passwd.py b/examples/pytde-sampler/dialogs/passwd.py index 3a7fd29..93d66f9 100644 --- a/examples/pytde-sampler/dialogs/passwd.py +++ b/examples/pytde-sampler/dialogs/passwd.py @@ -5,7 +5,7 @@ from tdeui import KPushButton, KPasswordDialog, KTextEdit iconName = 'password' labelText = 'KPasswordDialog' docParts = ('tdeui', 'KPasswordDialog') -helpText = ("KDE provides two variations on the password dialog. The simple " +helpText = ("TDE provides two variations on the password dialog. The simple " "one shown here prompts for a password. The other type allows the " "user to enter a new password, and provides a second field to " "confirm the first entry.") diff --git a/examples/pytde-sampler/dialogs/progress.py b/examples/pytde-sampler/dialogs/progress.py index f7d69f8..b2ead9a 100644 --- a/examples/pytde-sampler/dialogs/progress.py +++ b/examples/pytde-sampler/dialogs/progress.py @@ -7,7 +7,7 @@ from tdecore import i18n from tdeui import KPushButton, KProgressDialog, KTextEdit -helpText = """KDE provides a ready-built dialog to display a bit of text and a +helpText = """TDE provides a ready-built dialog to display a bit of text and a progress bar.""" diff --git a/examples/pytde-sampler/dialogs/tip.py b/examples/pytde-sampler/dialogs/tip.py index 15ec50d..2e4fc02 100644 --- a/examples/pytde-sampler/dialogs/tip.py +++ b/examples/pytde-sampler/dialogs/tip.py @@ -8,7 +8,7 @@ from tdecore import i18n from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit -helpText = ("The KDE standard Tip-of-the-Day dialog.") +helpText = ("The TDE standard Tip-of-the-Day dialog.") class MainFrame(TQFrame): diff --git a/examples/pytde-sampler/dialogs/tips b/examples/pytde-sampler/dialogs/tips index 9f24457..e0439dc 100644 --- a/examples/pytde-sampler/dialogs/tips +++ b/examples/pytde-sampler/dialogs/tips @@ -1,23 +1,23 @@ -<tip category="PyKDE Sampler|General"> +<tip category="PyTDE Sampler|General"> <html> <p>Don't tug on Superman's cape.</p> </html> </tip> -<tip category="PyKDE Sampler|General"> +<tip category="PyTDE Sampler|General"> <html> <p>Don't spit into the wind.</p> </html> </tip> -<tip category="PyKDE Sampler|General"> +<tip category="PyTDE Sampler|General"> <html> <p>Don't pull the mask off the Lone Ranger.</p> </html> </tip> -<tip category="PyKDE Sampler|General"> +<tip category="PyTDE Sampler|General"> <html> <p>And don't mess around with <em>Jim</em>!</p> </html> |