Created
January 26, 2012 10:35
-
-
Save jef-n/1682168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pbnPlay(self): | |
self.slider.setRange(0, 100) | |
self.slider.setValue(0) | |
self.timer = QTimer() | |
self.timer.timeout.connect(self.stepForward) | |
self.timer.start(1000) | |
def stepForward(self): | |
self.slider.setValue( self.slider.value() + 1 ) | |
if self.slider.value() >= self.slider.maximum(): | |
self.timer.stop() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment