summaryrefslogtreecommitdiffstats
path: root/examples/progressbar.py
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-08 11:54:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-08 12:02:42 +0900
commit7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa (patch)
treecf2ca395f0812f228baba1d7f2a79c5b91c56263 /examples/progressbar.py
parent456d0fb6a207e9c80593967f2e37ddd21d32f5a4 (diff)
downloadpytqt-7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa.tar.gz
pytqt-7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/progressbar.py')
-rwxr-xr-xexamples/progressbar.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/progressbar.py b/examples/progressbar.py
index b507d08..9c42db7 100755
--- a/examples/progressbar.py
+++ b/examples/progressbar.py
@@ -57,11 +57,11 @@ class ProgressBar( TQButtonGroup ):
toplayout.addMultiCellWidget( self.progress, 1, 1, 0, 1 )
# connect the clicked() SIGNALs of the pushbuttons to SLOTs
- self.connect( self.start, SIGNAL("clicked()"), self.slotStart )
- self.connect( self.reset, SIGNAL("clicked()"), self.slotReset )
+ self.connect( self.start, TQ_SIGNAL("clicked()"), self.slotStart )
+ self.connect( self.reset, TQ_SIGNAL("clicked()"), self.slotReset )
- # connect the timeout() SIGNAL of the progress-timer to a SLOT
- self.connect( self.timer, SIGNAL("timeout()"), self.slotTimeout )
+ # connect the timeout() signal of the progress-timer to a slot
+ self.connect( self.timer, TQ_SIGNAL("timeout()"), self.slotTimeout )
# Let's start with normal speed...
self.normal.setChecked( TRUE )
@@ -69,8 +69,8 @@ class ProgressBar( TQButtonGroup ):
self.start.setFixedWidth( 80 )
self.setMinimumWidth( 300 )
- # SLOT slotStart
- # This SLOT is called if the user clicks start/pause/continue button
+ # Slot slotStart
+ # This slot is called if the user clicks start/pause/continue button
def slotStart( self ):
# If the progress bar is at the beginning...
if self.progress.progress() == -1 :
@@ -100,8 +100,8 @@ class ProgressBar( TQButtonGroup ):
# ...and rename the start/pause/continue button to Continue
self.start.setText( "&Continue" )
- # SLOT slotReset
- # This SLOT is called when the user clicks the reset button
+ # Slot slotReset
+ # This slot is called when the user clicks the reset button
def slotReset( self ):
# stop the timer and progress
self.timer.stop()
@@ -119,8 +119,8 @@ class ProgressBar( TQButtonGroup ):
# reset the progressbar
self.progress.reset()
- # SLOT slotTimeout
- # This SLOT is called each ms when the timer is
+ # Slot slotTimeout
+ # This slot is called each ms when the timer is
# active (== progress is running)
def slotTimeout( self ):
p = self.progress.progress()