diff options
Diffstat (limited to 'examples/pykde-sampler/dialogs/font.py')
-rw-r--r-- | examples/pykde-sampler/dialogs/font.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/pykde-sampler/dialogs/font.py b/examples/pykde-sampler/dialogs/font.py index efa9af7..194524c 100644 --- a/examples/pykde-sampler/dialogs/font.py +++ b/examples/pykde-sampler/dialogs/font.py @@ -1,5 +1,5 @@ -from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QFont, QString +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQFont, TQString from tdecore import i18n from tdeui import KPushButton, KFontDialog, KTextEdit @@ -16,27 +16,27 @@ helpText = ("KDE provides a font dialog box for users to select (can you " fontText = """Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam ante. Nam in mauris. Vestibulum ante velit, condimentum vel, congue sit amet, lobortis a, dui. Fusce auctor, quam non pretium nonummy, leo -ante imperdiet libero, id lobortis erat erat quis eros. Pellentesque +ante imperdiet libero, id lobortis erat erat tquis eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras ut metus. Vivamus suscipit, sapien id tempor elementum, nunc quam malesuada dolor, sit amet luctus sapien odio vel ligula. Integer scelerisque, risus a interdum vestibulum, felis ipsum -pharetra eros, nec nonummy libero justo quis risus. Vestibulum +pharetra eros, nec nonummy libero justo tquis risus. Vestibulum tincidunt, augue vitae suscipit congue, sem dui adipiscing nulla, ut nonummy arcu quam ac sem. Nulla in metus. Phasellus neque. """ -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Font Dialog'), self) self.help = KTextEdit(helpText, '', self) self.example = KTextEdit(fontText, '', self) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help) - buttonlayout = QHBoxLayout(layout, 4) + buttonlayout = TQHBoxLayout(layout, 4) buttonlayout.addWidget(self.button) buttonlayout.addStretch(1) layout.addWidget(self.example, 10) @@ -45,8 +45,8 @@ class MainFrame(QFrame): def showFontDialog(self): - font = QFont(self.example.font()) - string = QString() + font = TQFont(self.example.font()) + string = TQString() accepted, other = KFontDialog.getFontAndText(font, string, False, self) if accepted: self.example.setFont(font) |