diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:42 -0600 |
commit | 2df6bde18ab40472f2df8637cf6456cb80dc2329 (patch) | |
tree | 5a4362124ff46786fce835d2f1e7d583c92a5670 /examples/pytde-sampler/dialogs | |
parent | be6cfa4b990910e65e8d2f4f212eba3f7da6ee72 (diff) | |
download | pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.tar.gz pytde-2df6bde18ab40472f2df8637cf6456cb80dc2329.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'examples/pytde-sampler/dialogs')
-rw-r--r-- | examples/pytde-sampler/dialogs/font.py | 8 | ||||
-rw-r--r-- | examples/pytde-sampler/dialogs/key.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/pytde-sampler/dialogs/font.py b/examples/pytde-sampler/dialogs/font.py index 194524c..1eccc13 100644 --- a/examples/pytde-sampler/dialogs/font.py +++ b/examples/pytde-sampler/dialogs/font.py @@ -1,11 +1,11 @@ from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString from tdecore import i18n -from tdeui import KPushButton, KFontDialog, KTextEdit +from tdeui import KPushButton, TDEFontDialog, KTextEdit iconName = 'fonts' -labelText = 'KFontDialog' -docParts = ('tdeui', 'KFontDialog') +labelText = 'TDEFontDialog' +docParts = ('tdeui', 'TDEFontDialog') helpText = ("KDE 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 " @@ -47,7 +47,7 @@ class MainFrame(TQFrame): def showFontDialog(self): font = TQFont(self.example.font()) string = TQString() - accepted, other = KFontDialog.getFontAndText(font, string, False, self) + accepted, other = TDEFontDialog.getFontAndText(font, string, False, self) if accepted: self.example.setFont(font) self.example.setText(string) diff --git a/examples/pytde-sampler/dialogs/key.py b/examples/pytde-sampler/dialogs/key.py index 8c88537..808a298 100644 --- a/examples/pytde-sampler/dialogs/key.py +++ b/examples/pytde-sampler/dialogs/key.py @@ -6,7 +6,7 @@ from tdecore import i18n from tdeui import KPushButton, KKeyDialog, KTextEdit -helpText = ("Configuring keystroke shortcuts is simple with KActions and the " +helpText = ("Configuring keystroke shortcuts is simple with TDEActions and the " "KKeyDialog type. This sample starts the KKeyDialog for the " "sampler application.") |