python Programming Glossary: self.progress
How to keep track of thread progress in Python without freezing the PyQt GUI? http://stackoverflow.com/questions/569650/how-to-keep-track-of-thread-progress-in-python-without-freezing-the-pyqt-gui resultsReady str def __init__ self docs self.docs docs self.progress 0 #int between 0 and 100 self.results threading.Thread.__init__.. num_docs 100 #emit signal only if progress has changed if self.progress new_progress self.emit QtCore.SIGNAL progressUpdated str self.getName.. self.emit QtCore.SIGNAL progressUpdated str self.getName self.progress new_progress if self.progress 100 self.emit QtCore.SIGNAL resultsReady..
a downloading progress bar in ttk http://stackoverflow.com/questions/7310511/a-downloading-progress-bar-in-ttk ttk.Button text start command self.start self.button.pack self.progress ttk.Progressbar self orient horizontal length 200 mode determinate.. self orient horizontal length 200 mode determinate self.progress.pack self.bytes 0 self.maxbytes 0 def start self self.progress.. self.bytes 0 self.maxbytes 0 def start self self.progress value 0 self.maxbytes 50000 self.progress maximum 50000 self.read_bytes..
|