summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/dialogs/input.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pykde-sampler/dialogs/input.py')
-rw-r--r--examples/pykde-sampler/dialogs/input.py18
1 files changed, 9 insertions, 9 deletions
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)