>= PySpeed - flexible progress bars for python =
This is a temporary wiki for the PySpeed project.
It is mainly here because I did not find a proper place to put screenshots :-)
You are free to use this page for any purpose related to the project.
And type the examples below in an interactive interpreter...
Textual progress bar (in IPython)
Graphical progress bar (nested)
Was produced by the following code:
<syntaxhighlight line lang="python"> import speed
for i in speed.gprogress(xrange(5)):
for j in speed.gprogress(xrange(5000000)): pass
- Make a nice logo (flying snake? Foot with wings?)
- Documentation (basic uses is understandable from screenshots, but there are several undocumented features).
- Testing on Windows (note that currently the GTK interface is not expected to work well there).
- (in particular, need to make <code>bprogress</code> (the Frozen Bubble progress bar) work there :-) )
- Support other GUI toolkits (add wprogress(), kprogress(), tkprogress() ...)
Currently, PySpeed targets usage in interactive interprepters, and in non-GUI scripts.
The GTK interface is threaded, and might not work in programs that use GTK GUI.
AFAIK, it might not work with Windows GTK as well.
Instead of running the GTK mainloop in a separate thread, we should probably explicitly poll the GTK queue at reasonable intervals.
The <code>speedConfig() / speed() / xrange()</code> interface is untested. Known problem: It seems that if you have active textual iteration contexts, you cannot <code>speedConfig(vis='graph')</code> (and vice versa). This is due to some problems related to the usage of weakref proxies.
Support for multiple, named, windows
I have some thoughts in this direction, but no time to implement. Contact me for details.