diff options
Diffstat (limited to 'examples/pykde-sampler/qt_widgets')
-rw-r--r-- | examples/pykde-sampler/qt_widgets/CONTRIB | 4 | ||||
-rw-r--r-- | examples/pykde-sampler/qt_widgets/__init__.py | 12 | ||||
-rw-r--r-- | examples/pykde-sampler/qt_widgets/table.py | 18 |
3 files changed, 17 insertions, 17 deletions
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) |