diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-08 11:54:27 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:03:08 +0900 |
commit | 27f46d6031d41aa6ce071885a7e280e1097680e1 (patch) | |
tree | dbb592ad2f606c9a8e56ed6aa4f4f562c8928002 /examples/progressbar.py | |
parent | a131499f339ae27686e9effc8088ebdf7bb77dde (diff) | |
download | pytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.tar.gz pytqt-27f46d6031d41aa6ce071885a7e280e1097680e1.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa)
Diffstat (limited to 'examples/progressbar.py')
-rwxr-xr-x | examples/progressbar.py | 20 |
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() |