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