diff options
Diffstat (limited to 'examples/pytde-sampler/dialogs/progress.py')
-rw-r--r-- | examples/pytde-sampler/dialogs/progress.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pytde-sampler/dialogs/progress.py b/examples/pytde-sampler/dialogs/progress.py index 1f4ab4b..3ac1182 100644 --- a/examples/pytde-sampler/dialogs/progress.py +++ b/examples/pytde-sampler/dialogs/progress.py @@ -2,7 +2,7 @@ iconName = 'go' labelText = 'KProgressDialog' -from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL +from PyTQt.tqt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, TQ_SIGNAL from tdecore import i18n from tdeui import KPushButton, KProgressDialog, KTextEdit @@ -22,7 +22,7 @@ class MainFrame(TQFrame): buttonlayout.addWidget(self.button) buttonlayout.addStretch(1) layout.addStretch(1) - self.connect(self.button, SIGNAL('clicked()'), self.showProgressDialog) + self.connect(self.button, TQ_SIGNAL('clicked()'), self.showProgressDialog) def showProgressDialog(self): self.dlg = dlg = KProgressDialog(self, None, 'Sample Progress Dialog', @@ -30,7 +30,7 @@ class MainFrame(TQFrame): dlg.progressBar().setTotalSteps(20) dlg.progressBar().setFormat('% complete: %p - value: %v - maximum: %m') timer = TQTimer(self) - self.connect(timer, SIGNAL('timeout()'), self.updateProgress) + self.connect(timer, TQ_SIGNAL('timeout()'), self.updateProgress) timer.start(250, False) dlg.exec_loop() timer.stop() |