summaryrefslogtreecommitdiffstats
path: root/pyanaconda/progress.py
Commit message (Collapse)AuthorAgeFilesLines
* add some thread loggingBrian C. Lane2012-10-091-0/+4
| | | | | | | * log when threads are started and are finished * log progress messages * log all the running threads and their stack frame when USR2 is received.
* Add a progress message for quitting the installer.Chris Lumens2012-09-251-0/+5
| | | | | We need this to quit when handling errors, since doing a sys.exit() from a thread only kills the thread and not the main program.
* Fix a typo in one of the new progress convenience functions.David Lehman2012-04-191-1/+1
|
* Add some convenience methods to hide the details of the queue implementation.Chris Lumens2012-04-191-3/+16
|
* Redo the progress bar code so it actually works.Chris Lumens2012-04-161-64/+31
| | | | | | | | | | | | With the previous code, I could never get the UI to be redrawn to reflect the changes, even though the changes appeared to have taken effect. This new code instead uses a message queue for communication between the thread doing all the hard work and the main thread that handles GTK stuff. The storage code will shove messages into that queue when it does something like create a filesystem, and the main thread watches in the idle loop for messages. I've also provided yet another context manager to make all this code simpler.
* Split the progress updating method into two.Chris Lumens2012-04-091-9/+20
| | | | | | | We need to be able to update the progress bar and the message independently. The message should be updated when an action begins so you know what's taking so long, and the progress bar should be updated when an action ends so you know how far you are through now.
* Add a progress bar reporting framework.Chris Lumens2012-02-221-0/+74
It consists of a very basic ProgressReporter class and singleton that serves as a wrapper around the UI implementation so anaconda doesn't need to know what kind of interface is running, and then a couple methods in the existing GUI progress bar class to set things up.