diff options
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() |