From 203ba231d0276943aae36111f9ec1e949f3c6a4c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 3 Dec 2011 22:23:44 -0600 Subject: Initial TQt conversion --- examples/pykde-sampler/HOWTO.samples | 6 ++--- examples/pykde-sampler/aboutkde.png | Bin 36986 -> 36991 bytes examples/pykde-sampler/basic_widgets/__init__.py | 8 +++--- examples/pykde-sampler/basic_widgets/datepicker.py | 20 +++++++-------- .../pykde-sampler/basic_widgets/historycombo.py | 26 +++++++++---------- examples/pykde-sampler/contributors.txt | 2 +- examples/pykde-sampler/dialogs/__init__.py | 8 +++--- examples/pykde-sampler/dialogs/about/__init__.py | 8 +++--- examples/pykde-sampler/dialogs/about/aboutapp.py | 10 ++++---- examples/pykde-sampler/dialogs/about/aboutkde.py | 10 ++++---- examples/pykde-sampler/dialogs/bugreport.py | 10 ++++---- examples/pykde-sampler/dialogs/color.py | 14 +++++------ examples/pykde-sampler/dialogs/config.py | 20 +++++++-------- examples/pykde-sampler/dialogs/edfind.py | 10 ++++---- examples/pykde-sampler/dialogs/edreplace.py | 10 ++++---- examples/pykde-sampler/dialogs/font.py | 18 ++++++------- examples/pykde-sampler/dialogs/input.py | 18 ++++++------- examples/pykde-sampler/dialogs/key.py | 10 ++++---- examples/pykde-sampler/dialogs/msgbox.py | 10 ++++---- examples/pykde-sampler/dialogs/passwd.py | 10 ++++---- examples/pykde-sampler/dialogs/progress.py | 12 ++++----- examples/pykde-sampler/dialogs/tip.py | 10 ++++---- examples/pykde-sampler/icon_handling/__init__.py | 8 +++--- examples/pykde-sampler/icon_handling/misc.py | 12 ++++----- examples/pykde-sampler/icon_handling/sizes.py | 10 ++++---- examples/pykde-sampler/misc/__init__.py | 8 +++--- examples/pykde-sampler/misc/gradientselect.py | 24 +++++++++--------- examples/pykde-sampler/misc/passivepop.py | 10 ++++---- examples/pykde-sampler/misc/window_info.py | 10 ++++---- examples/pykde-sampler/qt_widgets/CONTRIB | 4 +-- examples/pykde-sampler/qt_widgets/__init__.py | 12 ++++----- examples/pykde-sampler/qt_widgets/table.py | 18 ++++++------- examples/pykde-sampler/runner.py | 4 +-- examples/pykde-sampler/sampler.py | 28 ++++++++++----------- examples/pykde-sampler/xwin/__init__.py | 10 ++++---- 35 files changed, 204 insertions(+), 204 deletions(-) (limited to 'examples/pykde-sampler') diff --git a/examples/pykde-sampler/HOWTO.samples b/examples/pykde-sampler/HOWTO.samples index 966a92c..0ccf630 100644 --- a/examples/pykde-sampler/HOWTO.samples +++ b/examples/pykde-sampler/HOWTO.samples @@ -38,15 +38,15 @@ In side the module, add the following: the sample. -- one of buildWidget, buildDialog, buildApp, MainFrame - callable (required) +- one of buildWidget, buildDialog, buildApp, MainFrame - callable (retquired) default: None - example: MainFrame(QFrame): ... + example: MainFrame(TQFrame): ... The sample module must contain a callable with one of these names. The callable must accept a single positional parameter, the parent widget. - In most cases, it is sufficient to define a subclass of QFrame named + In most cases, it is sufficient to define a subclass of TQFrame named 'MainFrame'. To construct a more complex sample, define a function with one of the other names. diff --git a/examples/pykde-sampler/aboutkde.png b/examples/pykde-sampler/aboutkde.png index 3bb4e68..2aa6d73 100644 Binary files a/examples/pykde-sampler/aboutkde.png and b/examples/pykde-sampler/aboutkde.png differ diff --git a/examples/pykde-sampler/basic_widgets/__init__.py b/examples/pykde-sampler/basic_widgets/__init__.py index 8a32c63..312f629 100644 --- a/examples/pykde-sampler/basic_widgets/__init__.py +++ b/examples/pykde-sampler/basic_widgets/__init__.py @@ -4,14 +4,14 @@ iconName = 'about_kde' helpText = """KDE provides a large set of basic widgets 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) layout.addStretch(1) diff --git a/examples/pykde-sampler/basic_widgets/datepicker.py b/examples/pykde-sampler/basic_widgets/datepicker.py index d32fb45..b0f74c6 100644 --- a/examples/pykde-sampler/basic_widgets/datepicker.py +++ b/examples/pykde-sampler/basic_widgets/datepicker.py @@ -1,5 +1,5 @@ -from qt import QFrame, QStringList, QVBoxLayout, SIGNAL, QLabel, QSizePolicy, Qt -from qttable import QTable +from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt +from qttable import TQTable from tdeui import KTextEdit, KDatePicker, KDateWidget @@ -17,26 +17,26 @@ A line edit has been added in the newer versions to allow the user to select a date directly by entering numbers like 19990101 or 990101. """ -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) self.dateDisplay = KDateWidget(self) - self.dateDisplay.setSizePolicy(QSizePolicy(QSizePolicy.Maximum, - QSizePolicy.Maximum)) + self.dateDisplay.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum, + TQSizePolicy.Maximum)) self.datePicker = KDatePicker(self) - layout = QVBoxLayout(self) + layout = TQVBoxLayout(self) layout.addWidget(self.help, 1) - layout.addWidget(self.datePicker, 0, Qt.AlignHCenter) + layout.addWidget(self.datePicker, 0, TQt.AlignHCenter) layout.addStretch(1) - self.other = QLabel('Selected Date:', self) + self.other = TQLabel('Selected Date:', self) layout.addWidget(self.other, 0) layout.addWidget(self.dateDisplay, 2) - self.connect(self.datePicker, SIGNAL('dateChanged(QDate)'), + self.connect(self.datePicker, SIGNAL('dateChanged(TQDate)'), self.dateDisplay.setDate) diff --git a/examples/pykde-sampler/basic_widgets/historycombo.py b/examples/pykde-sampler/basic_widgets/historycombo.py index a71b72c..3b0797c 100644 --- a/examples/pykde-sampler/basic_widgets/historycombo.py +++ b/examples/pykde-sampler/basic_widgets/historycombo.py @@ -1,4 +1,4 @@ -from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QStringList, QLabel, \ +from qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQStringList, TQLabel, \ SIGNAL, SLOT from tdeui import KHistoryCombo, KTextEdit @@ -15,37 +15,37 @@ helpText = ('An example of the KHistoryCombo widget.' 'slot to automatically add new items.') -historyText = 'a quick brown fox jumps over the lazy dog' +historyText = 'a tquick brown fox jumps over the lazy dog' -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) self.historyCombo = KHistoryCombo(self) - self.historySelectionLabel = QLabel('Selected value: ', self) - self.historySelection = QLabel('(none)', self) + self.historySelectionLabel = TQLabel('Selected value: ', self) + self.historySelection = TQLabel('(none)', self) - items = QStringList() + items = TQStringList() for item in historyText.split(): items.append(item) self.historyCombo.setHistoryItems(items, True) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help, 3) layout.addStretch(1) - selectionLayout = QHBoxLayout(layout, 4) + selectionLayout = TQHBoxLayout(layout, 4) selectionLayout.addWidget(self.historySelectionLabel, 1) - selectionLayout.addWidget(self.historySelection, 10, Qt.AlignLeft) + selectionLayout.addWidget(self.historySelection, 10, TQt.AlignLeft) layout.addWidget(self.historyCombo, 0) layout.addStretch(10) - self.connect(self.historyCombo, SIGNAL('activated(const QString& )'), - self.historyCombo, SLOT('addToHistory(const QString&)')) + self.connect(self.historyCombo, SIGNAL('activated(const TQString& )'), + self.historyCombo, SLOT('addToHistory(const TQString&)')) self.connect(self.historyCombo, SIGNAL('cleared()'), self.historyCleared) - self.connect(self.historyCombo, SIGNAL('activated(const QString &)'), + self.connect(self.historyCombo, SIGNAL('activated(const TQString &)'), self.historySelection.setText) def historyCleared(self): diff --git a/examples/pykde-sampler/contributors.txt b/examples/pykde-sampler/contributors.txt index 18b9a81..5063545 100644 --- a/examples/pykde-sampler/contributors.txt +++ b/examples/pykde-sampler/contributors.txt @@ -1,4 +1,4 @@ # author, contributions, email -Phil Thompson, For PyQt and SIP, phil@riverbankcomputing.co.uk +Phil Thompson, For PyTQt and SIP, phil@riverbankcomputing.co.uk Jim Bublitz, For PyKDE, jbublitz@nwinternet.com 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) diff --git a/examples/pykde-sampler/icon_handling/__init__.py b/examples/pykde-sampler/icon_handling/__init__.py index bf27f0a..2a525ac 100644 --- a/examples/pykde-sampler/icon_handling/__init__.py +++ b/examples/pykde-sampler/icon_handling/__init__.py @@ -6,13 +6,13 @@ helpText = ("KDE icons are nice. " "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/icon_handling/misc.py b/examples/pykde-sampler/icon_handling/misc.py index 5167362..cab3571 100644 --- a/examples/pykde-sampler/icon_handling/misc.py +++ b/examples/pykde-sampler/icon_handling/misc.py @@ -3,7 +3,7 @@ iconName = 'icons' labelText = 'Misc.' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QPoint +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint from tdecore import i18n from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import KRootPermsIcon, KWritePermsIcon @@ -13,19 +13,19 @@ helpText = ("Samples for the KRootPermsIcon and KWritePermsIcon classes." "These icons don't do anything.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.setAutoAdd(True) self.help = KTextEdit(helpText, '', self) self.root = KRootPermsIcon(None) - self.root.reparent(self, 0, QPoint(0,0), True) + self.root.reparent(self, 0, TQPoint(0,0), True) import os fn = os.path.abspath('.') print fn self.write = KWritePermsIcon(fn) - self.write.reparent(self, 0, QPoint(0,0), True) + self.write.reparent(self, 0, TQPoint(0,0), True) diff --git a/examples/pykde-sampler/icon_handling/sizes.py b/examples/pykde-sampler/icon_handling/sizes.py index 37fabaf..af7226d 100644 --- a/examples/pykde-sampler/icon_handling/sizes.py +++ b/examples/pykde-sampler/icon_handling/sizes.py @@ -3,7 +3,7 @@ iconName = 'icons' labelText = 'Icon Sizing' -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 @@ -11,14 +11,14 @@ from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit helpText = ("") -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/misc/__init__.py b/examples/pykde-sampler/misc/__init__.py index 25780a4..f9b66ae 100644 --- a/examples/pykde-sampler/misc/__init__.py +++ b/examples/pykde-sampler/misc/__init__.py @@ -4,13 +4,13 @@ iconName = 'misc' helpText = ("") -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/misc/gradientselect.py b/examples/pykde-sampler/misc/gradientselect.py index 5ef911d..0adb2ea 100644 --- a/examples/pykde-sampler/misc/gradientselect.py +++ b/examples/pykde-sampler/misc/gradientselect.py @@ -1,4 +1,4 @@ -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QColor, QSizePolicy, QLabel +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQColor, TQSizePolicy, TQLabel from tdecore import i18n from tdeui import KPushButton, KGradientSelector, KTextEdit, KDualColorButton, KColorPatch @@ -11,36 +11,36 @@ helpText = ("An example of the KGradientSelector widget." ) -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) self.selector = KGradientSelector(self) - self.dualLabel = QLabel('Select Colors:', self) + self.dualLabel = TQLabel('Select Colors:', self) - self.startColor = QColor('red') - self.finishColor = QColor('blue') + self.startColor = TQColor('red') + self.finishColor = TQColor('blue') self.selector.setColors(self.startColor, self.finishColor) self.selector.setText('Start', 'Finish') self.dualButton = KDualColorButton(self.startColor, self.finishColor, self) - self.dualButton.setSizePolicy(QSizePolicy(QSizePolicy.Maximum, - QSizePolicy.Maximum)) + self.dualButton.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum, + TQSizePolicy.Maximum)) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help, 20) - buttonLayout = QHBoxLayout(layout, 4) + buttonLayout = TQHBoxLayout(layout, 4) buttonLayout.addWidget(self.dualLabel, 0) buttonLayout.addWidget(self.dualButton, 1) layout.addWidget(self.selector, 10) - self.connect(self.dualButton, SIGNAL('fgChanged(const QColor &)'), + self.connect(self.dualButton, SIGNAL('fgChanged(const TQColor &)'), self.selector.setFirstColor) - self.connect(self.dualButton, SIGNAL('bgChanged(const QColor &)'), + self.connect(self.dualButton, SIGNAL('bgChanged(const TQColor &)'), self.selector.setSecondColor) self.connect(self.selector, SIGNAL('valueChanged(int)'), self.updateValue) diff --git a/examples/pykde-sampler/misc/passivepop.py b/examples/pykde-sampler/misc/passivepop.py index d38b4ec..8a2b2e8 100644 --- a/examples/pykde-sampler/misc/passivepop.py +++ b/examples/pykde-sampler/misc/passivepop.py @@ -1,4 +1,4 @@ -from qt import Qt, QFrame, QHBoxLayout, QVBoxLayout, QLabel, SIGNAL +from qt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQLabel, SIGNAL from tdeui import KPassivePopup, KTextEdit, KPushButton from tdecore import KGlobal, KIcon @@ -8,15 +8,15 @@ docParts = ('tdeui', 'KPassivePopup') helpText = ('Examples of the KPassivePopup widget.') -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) self.button = KPushButton('Show Passive Popups', self) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help, 10) - buttonLayout = QHBoxLayout(layout, 4) + buttonLayout = TQHBoxLayout(layout, 4) buttonLayout.addWidget(self.button, 1) buttonLayout.addStretch(10) layout.addStretch(10) diff --git a/examples/pykde-sampler/misc/window_info.py b/examples/pykde-sampler/misc/window_info.py index 497aa39..daef2e0 100644 --- a/examples/pykde-sampler/misc/window_info.py +++ b/examples/pykde-sampler/misc/window_info.py @@ -1,7 +1,7 @@ -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdeui import KWindowInfo, KPushButton, KTextEdit from tdecore import i18n, KApplication @@ -10,14 +10,14 @@ labelText = 'KWindowInfo' helpText = '' -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Message'), 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/qt_widgets/CONTRIB b/examples/pykde-sampler/qt_widgets/CONTRIB index cbdf61a..e9bfd3d 100644 --- a/examples/pykde-sampler/qt_widgets/CONTRIB +++ b/examples/pykde-sampler/qt_widgets/CONTRIB @@ -340,7 +340,7 @@ tdeui,KXMLGUIBuilder,,, tdeui,KXMLGUIClient,,, tdeui,KXMLGUIFactory,,, tdeui,KXYSelector,,, -tdeui,QXEmbed,,, +tdeui,TQXEmbed,,, tdeui,testKActionList,,, kfile,KApplicationPropsPlugin,,, kfile,KBindingPropsPlugin,,, @@ -503,7 +503,7 @@ kmdi,KMdiWin32IconButton,,, kparts,KParts,,, kparts,createReadOnlyPart,,, kparts,createReadWritePart,,, -kparts,testQMapQCStringInt,,, +kparts,testTQMapTQCStringInt,,, kspell,KS_ADD,,, kspell,KS_CANCEL,,, kspell,KS_CLIENT_ASPELL,,, diff --git a/examples/pykde-sampler/qt_widgets/__init__.py b/examples/pykde-sampler/qt_widgets/__init__.py index 3bbf9dc..fdd6539 100644 --- a/examples/pykde-sampler/qt_widgets/__init__.py +++ b/examples/pykde-sampler/qt_widgets/__init__.py @@ -1,17 +1,17 @@ -labelText = 'Qt Widgets' +labelText = 'TQt Widgets' iconName = 'designer' -helpText = """Qt provides a rich set of widgets for application use. +helpText = """TQt provides a rich set of widgets for application use. Select the children of this item to see for yourself.""" -from qt import QFrame, QVBoxLayout, SIGNAL +from qt import TQFrame, TQVBoxLayout, SIGNAL from tdeui import KTextEdit -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help) layout.addStretch(1) diff --git a/examples/pykde-sampler/qt_widgets/table.py b/examples/pykde-sampler/qt_widgets/table.py index 9945b7e..4a689d2 100644 --- a/examples/pykde-sampler/qt_widgets/table.py +++ b/examples/pykde-sampler/qt_widgets/table.py @@ -1,32 +1,32 @@ -labelText = 'QTable' +labelText = 'TQTable' iconName = 'inline_table' -helpText = """From the docs: 'The QTable class provides a flexible +helpText = """From the docs: 'The TQTable class provides a flexible editable table widget.' """ import csv import os -from qt import QFrame, QStringList, QVBoxLayout, SIGNAL -from qttable import QTable +from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL +from qttable import TQTable from tdeui import KTextEdit contrib = os.path.join(os.path.split(__file__)[0], 'CONTRIB') -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) data = csv.reader(open(contrib)) header = data.next() items = [item for item in data] - self.table = table = QTable(len(items), len(header), self) - headers = QStringList() + self.table = table = TQTable(len(items), len(header), self) + headers = TQStringList() for headertext in header: headers.append(headertext) table.setColumnLabels(headers) @@ -36,7 +36,7 @@ class MainFrame(QFrame): for col in cols: table.setText(row, col, record[col]) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help) layout.addWidget(self.table) layout.addStretch(1) diff --git a/examples/pykde-sampler/runner.py b/examples/pykde-sampler/runner.py index 43f89fd..e153fae 100755 --- a/examples/pykde-sampler/runner.py +++ b/examples/pykde-sampler/runner.py @@ -5,7 +5,7 @@ import sys from tdecore import KApplication, KCmdLineArgs from tdeui import KMainWindow -from qt import QVBoxLayout +from qt import TQVBoxLayout ## relative import -- cry me a river! import about @@ -14,7 +14,7 @@ import about class SamplerRunnerWindow(KMainWindow): def __init__(self, ctor): KMainWindow.__init__(self) - layout = QVBoxLayout(self) + layout = TQVBoxLayout(self) layout.setAutoAdd(True) self.widget = ctor(self) diff --git a/examples/pykde-sampler/sampler.py b/examples/pykde-sampler/sampler.py index 4625519..83a4979 100755 --- a/examples/pykde-sampler/sampler.py +++ b/examples/pykde-sampler/sampler.py @@ -10,9 +10,9 @@ import inspect import os import sys -from qt import SIGNAL, SLOT, PYSIGNAL, Qt -from qt import QVBoxLayout, QLabel, QPixmap, QSplitter, QFrame, QDialog -from qt import QSizePolicy, QHBoxLayout, QSpacerItem, QPushButton +from qt import SIGNAL, SLOT, PYSIGNAL, TQt +from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog +from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton from tdecore import i18n, KAboutData, KApplication, KCmdLineArgs, KGlobal from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon @@ -35,8 +35,8 @@ except (NameError, ): __file__ = sys.argv[0] -sigDoubleClicked = SIGNAL('doubleClicked(QListViewItem *)') -sigViewItemSelected = SIGNAL('selectionChanged(QListViewItem *)') +sigDoubleClicked = SIGNAL('doubleClicked(TQListViewItem *)') +sigViewItemSelected = SIGNAL('selectionChanged(TQListViewItem *)') sigSampleSelected = PYSIGNAL('sample selected') blank = KURL('about:blank') @@ -83,15 +83,15 @@ def buildPart(parent, query, constraint, writable=False): -class CommonFrame(QFrame): +class CommonFrame(TQFrame): """ provides a modicum of reuse """ def __init__(self, parent): - QFrame.__init__(self, parent) - layout = QVBoxLayout(self) + TQFrame.__init__(self, parent) + layout = TQVBoxLayout(self) layout.setAutoAdd(True) - layout.setAlignment(Qt.AlignCenter | Qt.AlignVCenter) + layout.setAlignment(TQt.AlignCenter | TQt.AlignVCenter) class SamplerFrame(CommonFrame): @@ -243,9 +243,9 @@ class SamplerMainWindow(KMainWindow): """ def __init__(self, *args): KMainWindow.__init__(self, *args) - self.hSplitter = hSplit = QSplitter(Qt.Horizontal, self) + self.hSplitter = hSplit = TQSplitter(TQt.Horizontal, self) self.samplesList = samplesList = SamplerListView(hSplit) - self.vSplitter = vSplit = QSplitter(Qt.Vertical, hSplit) + self.vSplitter = vSplit = TQSplitter(TQt.Vertical, hSplit) self.setCentralWidget(hSplit) self.setIcon(getIcon('kmail')) @@ -358,7 +358,7 @@ class SamplerMainWindow(KMainWindow): """ ret = KKeyDialog.configure(self.actionCollection(), self) print ret - if ret == QDialog.Accepted: + if ret == TQDialog.Accepted: actions = self.actionCollection() actions.writeShortcutSettings(None, appConfig()) @@ -398,7 +398,7 @@ class SamplerMainWindow(KMainWindow): """ target = self.sampleFrame - label = QLabel(target) + label = TQLabel(target) label.setPixmap(pixmap) target.setWidget(label) @@ -412,7 +412,7 @@ if __name__ == '__main__': KCmdLineArgs.init(sys.argv, aboutdata) app = KApplication() - splashpix = QPixmap(os.path.join(lib.samplerpath, 'aboutkde.png')) + splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png')) splash = KSplashScreen(splashpix) splash.resize(splashpix.size()) splash.show() diff --git a/examples/pykde-sampler/xwin/__init__.py b/examples/pykde-sampler/xwin/__init__.py index f9ff0b1..34787fd 100644 --- a/examples/pykde-sampler/xwin/__init__.py +++ b/examples/pykde-sampler/xwin/__init__.py @@ -4,13 +4,13 @@ iconName = 'kcmx' helpText = """KDE and PyKDE allow interaction with the X Window system. Check out the nifty samples below.""" -from qt import QFrame, QLabel, QVBoxLayout +from qt import TQFrame, TQLabel, TQVBoxLayout -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) - layout = QVBoxLayout(self) - self.text = QLabel(helpText, self) + TQFrame.__init__(self, parent) + layout = TQVBoxLayout(self) + self.text = TQLabel(helpText, self) layout.addWidget(self.text, 1) -- cgit v1.2.1