From 2df6bde18ab40472f2df8637cf6456cb80dc2329 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:09:42 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- examples/pytde-sampler/dialogs/font.py | 8 ++++---- examples/pytde-sampler/dialogs/key.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/pytde-sampler/dialogs') 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.") -- cgit v1.2.1