[pygtk] Help with progress bars gobject and threading stuff
neilmunro at gmail.com
Fri Jun 26 01:49:05 WST 2009
I am new to Python and GTK (less than a years experience with
both) but I am eager to learn, I started writing a program which became my
uni thesis and I wish to continue to develop it and I have run into issues.
My program is basically a system administrators update tool, and downloads
quite a few things. So to display this I created a main progress bar for
total amount downloaded and i created progress bars as cell renderers inside
a treeview for individual downloads. Now I have since learned the way I do
this by using a regular while loop causes the progress bars to often lock up
and that I need to use pygobject to assist in this.
My source can be found here: http://pastebin.com/m1aa1893d or can be fully
checked out from svn using svn://aedentide.ath.cx/svn/aedentide and it's the
pywarp project that the issue occurs in, the file in the paste bin is
located in src/Warp-Demo.py
I was also given this code example which I largely understand:
http://codepad.org/Z4gc8ey4 I was also pointed to this:
http://gist.github.com/51686 for help with threading and how to use gobject.
What I am really struggling with is applying the theory to my project I
understand how it might work but can't seem to apply it correctly. I have
tried two or three times and failed at each attempt, there should be a
Warp-Demo.py.bak file which I made and used to recover should I make a right
mess of the source file.
Any help on this matter would be greatly apriciated. I may appear to go in
mental circles until I 'get' what anyone might tell me so I appologise now
if it might take me a few attempts at it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pygtk