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