summaryrefslogtreecommitdiffstats
path: root/examples/pytde-sampler/dialogs/progress.py
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-10 10:12:35 +0900
committerMichele Calgaro <[email protected]>2024-01-10 10:12:35 +0900
commitd94985267d6f224c5a9833736762f466d264374d (patch)
tree493b94e70d01d14903bf19aece4af02da401190c /examples/pytde-sampler/dialogs/progress.py
parent36e3e3e1b3a8d802d926b424391e2cc9d3b19c20 (diff)
downloadpytde-d94985267d6f224c5a9833736762f466d264374d.tar.gz
pytde-d94985267d6f224c5a9833736762f466d264374d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'examples/pytde-sampler/dialogs/progress.py')
-rw-r--r--examples/pytde-sampler/dialogs/progress.py6
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()