I'm working on a program that needs a progress bar...

I have a gtk class, with a subclass in it that takes care of the progress bar, but i seem to have a problem
 with the variable scope...

The program converts a complete directory of mp3's uing LAME, so it first counts how many files
 need to be converted, and then starts a loop that converts each file. In this loop is a counter, that
 i use to calculate the fraction for the progressbar.

The progressbar thread doesn't seem to get the changed fraction variable so it always stays at 0,
 while it increments correclty in the conversion method...

So i don't know what to do to be able to use the fraction variable globally...

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to