diff options
Diffstat (limited to 'examples/pykde-sampler/dialogs')
-rw-r--r-- | examples/pykde-sampler/dialogs/__init__.py | 8 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/about/__init__.py | 8 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/about/aboutapp.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/about/aboutkde.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/bugreport.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/color.py | 14 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/config.py | 20 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/edfind.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/edreplace.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/font.py | 18 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/input.py | 18 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/key.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/msgbox.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/passwd.py | 10 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/progress.py | 12 | ||||
-rw-r--r-- | examples/pykde-sampler/dialogs/tip.py | 10 |
16 files changed, 94 insertions, 94 deletions
diff --git a/examples/pykde-sampler/dialogs/__init__.py b/examples/pykde-sampler/dialogs/__init__.py index cdec131..07a731c 100644 --- a/examples/pykde-sampler/dialogs/__init__.py +++ b/examples/pykde-sampler/dialogs/__init__.py @@ -6,13 +6,13 @@ helpText = ("KDE provides a convenient set of dialog boxes for application use. "Select the children of this item to see for yourself.") -from qt import QFrame, QVBoxLayout +from qt import TQFrame, TQVBoxLayout from tdeui import KTextEdit -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) - layout = QVBoxLayout(self) + TQFrame.__init__(self, parent) + layout = TQVBoxLayout(self) self.text = KTextEdit(helpText, '', self) layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/dialogs/about/__init__.py b/examples/pykde-sampler/dialogs/about/__init__.py index d406216..ea1ad17 100644 --- a/examples/pykde-sampler/dialogs/about/__init__.py +++ b/examples/pykde-sampler/dialogs/about/__init__.py @@ -5,12 +5,12 @@ helpText = ("KDE 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!") -from qt import QFrame, QVBoxLayout +from qt import TQFrame, TQVBoxLayout from tdeui import KTextEdit -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) - layout = QVBoxLayout(self) + TQFrame.__init__(self, parent) + layout = TQVBoxLayout(self) self.text = KTextEdit(helpText, '', self) layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/dialogs/about/aboutapp.py b/examples/pykde-sampler/dialogs/about/aboutapp.py index 585db60..820d50f 100644 --- a/examples/pykde-sampler/dialogs/about/aboutapp.py +++ b/examples/pykde-sampler/dialogs/about/aboutapp.py @@ -1,7 +1,7 @@ iconName = 'about_kde' labelText = 'KAboutApplication' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KAboutApplication, KPushButton, KTextEdit @@ -11,14 +11,14 @@ helpText = ("Typically available via the applications 'Help' menu, this " docParts = ('tdeui', 'KAboutDialog') -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('About Application'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) diff --git a/examples/pykde-sampler/dialogs/about/aboutkde.py b/examples/pykde-sampler/dialogs/about/aboutkde.py index 08dd93e..dc7390c 100644 --- a/examples/pykde-sampler/dialogs/about/aboutkde.py +++ b/examples/pykde-sampler/dialogs/about/aboutkde.py @@ -1,7 +1,7 @@ iconName = 'about_kde' labelText = 'KAboutKDE' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KAboutKDE, KPushButton, KTextEdit @@ -10,14 +10,14 @@ helpText = ("Typically available via the applications 'Help' menu, this " "dialog presents the user with the standard KDE About dialog.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('About KDE'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) diff --git a/examples/pykde-sampler/dialogs/bugreport.py b/examples/pykde-sampler/dialogs/bugreport.py index 7cb3340..76fe0ae 100644 --- a/examples/pykde-sampler/dialogs/bugreport.py +++ b/examples/pykde-sampler/dialogs/bugreport.py @@ -6,7 +6,7 @@ labelText = 'KBugReport' ##~ specifies what we want. ##~ docItemName = 'KBugReport' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit @@ -15,14 +15,14 @@ helpText = ("KDE provides a way to report bugs from applications. This dialog" "is typically available from the application 'Help' menu.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Bug Report Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) diff --git a/examples/pykde-sampler/dialogs/color.py b/examples/pykde-sampler/dialogs/color.py index dba8eb6..738c000 100644 --- a/examples/pykde-sampler/dialogs/color.py +++ b/examples/pykde-sampler/dialogs/color.py @@ -2,7 +2,7 @@ iconName = 'colorize' labelText = 'KColorDialog' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KPushButton, KColorDialog, KColorPatch, KTextEdit @@ -12,15 +12,15 @@ helpText = ("KDE provides a nifty common color selection dialog." "connected to the KColorPatch area below.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Color Dialog'), self) self.help = KTextEdit(helpText, '', self) self.patch = KColorPatch(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.patch, 10) @@ -31,12 +31,12 @@ class MainFrame(QFrame): dlg = KColorDialog(self) ## this connection is made so that there's a default color - self.connect(dlg, SIGNAL('colorSelected(const QColor &)'), + self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'), self.patch.setPaletteBackgroundColor) dlg.setColor(self.patch.paletteBackgroundColor()) ## this connection is the one that changes the patch color to match ## the color selected in the dialog - self.connect(dlg, SIGNAL('colorSelected(const QColor &)'), + self.connect(dlg, SIGNAL('colorSelected(const TQColor &)'), self.patch.setColor) dlg.exec_loop() diff --git a/examples/pykde-sampler/dialogs/config.py b/examples/pykde-sampler/dialogs/config.py index 503c49a..8700cff 100644 --- a/examples/pykde-sampler/dialogs/config.py +++ b/examples/pykde-sampler/dialogs/config.py @@ -1,5 +1,5 @@ -from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QString +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQString from tdecore import i18n, KConfigSkeleton from tdeui import KPushButton, KConfigDialog, KTextEdit @@ -12,7 +12,7 @@ helpText = ("") class SampleSettings(KConfigSkeleton): def __init__(self): KConfigSkeleton.__init__(self) - self.anyString = QString() + self.anyString = TQString() self.setCurrentGroup("Strings") self.addItemString("Test", self.anyString, "Default Value") @@ -21,15 +21,15 @@ class SampleSettings(KConfigSkeleton): self.addItemBool("Any Bool", False) -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Config Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) @@ -46,14 +46,14 @@ class MainFrame(QFrame): dlg.exec_loop() -class StringsSettings(QFrame): +class StringsSettings(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.text = KTextEdit('A String', '', self) -class BoolSettings(QFrame): +class BoolSettings(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.text = KTextEdit('A Bool', '', self) diff --git a/examples/pykde-sampler/dialogs/edfind.py b/examples/pykde-sampler/dialogs/edfind.py index 434c85f..0dabb2f 100644 --- a/examples/pykde-sampler/dialogs/edfind.py +++ b/examples/pykde-sampler/dialogs/edfind.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, KEdFind, KTextEdit @@ -9,15 +9,15 @@ docParts = ('tdeui', 'KEdFind') helpText = ("An example of the KEdFind dialog.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Edit Find Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) diff --git a/examples/pykde-sampler/dialogs/edreplace.py b/examples/pykde-sampler/dialogs/edreplace.py index 8ba705a..2cbc03e 100644 --- a/examples/pykde-sampler/dialogs/edreplace.py +++ b/examples/pykde-sampler/dialogs/edreplace.py @@ -1,4 +1,4 @@ -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, KEdReplace, KTextEdit @@ -8,15 +8,15 @@ docParts = ('tdeui', 'KEdReplace') helpText = ("An example of the KEdReplace dialog.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Edit Find Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) 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) diff --git a/examples/pykde-sampler/dialogs/input.py b/examples/pykde-sampler/dialogs/input.py index c922178..8d9312f 100644 --- a/examples/pykde-sampler/dialogs/input.py +++ b/examples/pykde-sampler/dialogs/input.py @@ -1,7 +1,7 @@ iconName = 'editclear' labelText = 'KInputDialog' -from qt import QFrame, QGridLayout, QLabel, QStringList, SIGNAL +from qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL from tdecore import i18n from tdeui import KPushButton, KInputDialog, KTextEdit @@ -11,42 +11,42 @@ helpText = ("KInputDialog allows the programmer to display a simple dialog to " "list item from the user.") -class MainFrame(QFrame): +class MainFrame(TQFrame): items = ['Apples', 'Bananas', 'Mangos', 'Oranges', 'Pears', ] def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) - layout = QGridLayout(self, 5, 2, 4) # five rows, two cols, four px spacing + layout = TQGridLayout(self, 5, 2, 4) # five rows, two cols, four px spacing layout.setRowStretch(0, 10) layout.setColStretch(1, 10) layout.addMultiCellWidget(self.help, 0, 1, 0, 1) button = KPushButton(i18n('Get Text'), self) self.connect(button, SIGNAL('clicked()'), self.getText) - self.getTextLabel = QLabel('text value', self) + self.getTextLabel = TQLabel('text value', self) layout.addWidget(button, 2, 0) layout.addWidget(self.getTextLabel, 2, 1) layout.setRowStretch(2, 0) button = KPushButton(i18n('Get Integer'), self) self.connect(button, SIGNAL('clicked()'), self.getInt) - self.getIntLabel = QLabel('0', self) + self.getIntLabel = TQLabel('0', self) layout.addWidget(self.getIntLabel, 3, 1) layout.addWidget(button, 3, 0) layout.setRowStretch(3, 0) button = KPushButton(i18n('Get Double'), self) self.connect(button, SIGNAL('clicked()'), self.getDouble) - self.getDoubleLabel = QLabel('0.0', self) + self.getDoubleLabel = TQLabel('0.0', self) layout.addWidget(self.getDoubleLabel, 4, 1) layout.addWidget(button, 4, 0) layout.setRowStretch(4, 0) button = KPushButton(i18n('Get Item'), self) self.connect(button, SIGNAL('clicked()'), self.getItem) - self.getItemLabel = QLabel(self.items[0], self) + self.getItemLabel = TQLabel(self.items[0], self) layout.addWidget(button, 5, 0) layout.addWidget(self.getItemLabel, 5, 1) layout.setRowStretch(5, 0) @@ -79,7 +79,7 @@ class MainFrame(QFrame): title = 'KInputDialog.getItem Dialog' label = 'Select an item:' current = self.items.index('%s' % self.getItemLabel.text()) - selections = QStringList() + selections = TQStringList() for item in self.items: selections.append(item) value, accepted = KInputDialog.getItem(title, label, selections, current) diff --git a/examples/pykde-sampler/dialogs/key.py b/examples/pykde-sampler/dialogs/key.py index d267733..8c88537 100644 --- a/examples/pykde-sampler/dialogs/key.py +++ b/examples/pykde-sampler/dialogs/key.py @@ -1,7 +1,7 @@ iconName = 'configure_shortcuts' labelText = 'KKeyDialog' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KPushButton, KKeyDialog, KTextEdit @@ -11,14 +11,14 @@ helpText = ("Configuring keystroke shortcuts is simple with KActions and the " "sampler application.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Key Configuration Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) diff --git a/examples/pykde-sampler/dialogs/msgbox.py b/examples/pykde-sampler/dialogs/msgbox.py index 57d4bc1..b22c03f 100644 --- a/examples/pykde-sampler/dialogs/msgbox.py +++ b/examples/pykde-sampler/dialogs/msgbox.py @@ -5,7 +5,7 @@ from random import random from traceback import print_exc from StringIO import StringIO -from qt import QFrame, QGridLayout, QLabel, QStringList, SIGNAL +from qt import TQFrame, TQGridLayout, TQLabel, TQStringList, SIGNAL from tdecore import i18n from tdeui import KGuiItem, KPushButton, KMessageBox, KTextEdit @@ -15,7 +15,7 @@ helpText = ("The KMessageBox Python class wraps the static methods of its C++ " "docs for KMessageBox for a full list.") -class MainFrame(QFrame): +class MainFrame(TQFrame): msg = 'Do you like food?' caption = 'Simple Question' err = 'Some kind of error happened, but it could be worse!' @@ -23,8 +23,8 @@ class MainFrame(QFrame): items = ['Apples', 'Bananas', 'Cantaloupe', 'Mangos', 'Oranges', 'Pears', ] def __init__(self, parent=None): - QFrame.__init__(self, parent) - items = QStringList() + TQFrame.__init__(self, parent) + items = TQStringList() for item in self.items: items.append(item) self.items = items @@ -35,7 +35,7 @@ class MainFrame(QFrame): self.help = KTextEdit(helpText, '', self) - layout = QGridLayout(self, 5, 2, 4) + layout = TQGridLayout(self, 5, 2, 4) layout.setRowStretch(0, 10) layout.setColStretch(1, 10) layout.addMultiCellWidget(self.help, 0, 1, 0, 1) diff --git a/examples/pykde-sampler/dialogs/passwd.py b/examples/pykde-sampler/dialogs/passwd.py index 946d7ec..3081c3d 100644 --- a/examples/pykde-sampler/dialogs/passwd.py +++ b/examples/pykde-sampler/dialogs/passwd.py @@ -1,4 +1,4 @@ -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KPushButton, KPasswordDialog, KTextEdit @@ -11,14 +11,14 @@ helpText = ("KDE provides two variations on the password dialog. The simple " "confirm the first entry.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Password Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) diff --git a/examples/pykde-sampler/dialogs/progress.py b/examples/pykde-sampler/dialogs/progress.py index bfa9d02..948ad78 100644 --- a/examples/pykde-sampler/dialogs/progress.py +++ b/examples/pykde-sampler/dialogs/progress.py @@ -2,7 +2,7 @@ iconName = 'go' labelText = 'KProgressDialog' -from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL from tdecore import i18n from tdeui import KPushButton, KProgressDialog, KTextEdit @@ -11,14 +11,14 @@ helpText = """KDE provides a ready-built dialog to display a bit of text and a progress bar.""" -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Progress Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) @@ -29,7 +29,7 @@ class MainFrame(QFrame): helpText) dlg.progressBar().setTotalSteps(20) dlg.progressBar().setFormat('% complete: %p - value: %v - maximum: %m') - timer = QTimer(self) + timer = TQTimer(self) self.connect(timer, SIGNAL('timeout()'), self.updateProgress) timer.start(250, False) dlg.exec_loop() diff --git a/examples/pykde-sampler/dialogs/tip.py b/examples/pykde-sampler/dialogs/tip.py index 1718c10..b86d3fd 100644 --- a/examples/pykde-sampler/dialogs/tip.py +++ b/examples/pykde-sampler/dialogs/tip.py @@ -3,7 +3,7 @@ labelText = 'KTipDialog' import os -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit @@ -11,14 +11,14 @@ from tdeui import KPushButton, KTipDatabase, KTipDialog, KTextEdit helpText = ("The KDE standard Tip-of-the-Day dialog.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Tip-of-the-Day Dialog'), self) self.help = KTextEdit(helpText, '', 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.addStretch(1) |