diff options
Diffstat (limited to 'examples/pytde-sampler/dialogs/font.py')
-rw-r--r-- | examples/pytde-sampler/dialogs/font.py | 8 |
1 files changed, 4 insertions, 4 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) |