"Pferdekaemper, Thorsten" wrote:
> I have now added a progress indicator to freevo/mmpython. I would
> tell it a dirty hack, so I do not post the coding here, just the
> idea for consideration...

OK :-)

> Here is roughly what the progress indicator does and how I have
> implemented it. Normally, you get a popup saying "Scanning
> directory/disc, be patient". On my box, it now says
>       Scanning disc...
>          656 of 720      

There is no progress bar in the Freevo gui code. I will take a look at
it this evening, mayve I can find something.

> I have changed the PopupBox.py and inserted a method set_text to set
> a new text. It basically changes the text shown and triggers a
> redraw with method show if it is currently displayed.

Ouch, ok, bad hack. But....maybe not. 

> In directory.py, the method cache_dir is called. I have changed both
> the cache_dir methods in mmpython/__init__.py and mmpython/cache.py
> to make them accept the PopupBox as a parameter. In
> mmpython/cache.py, the set_text method is used to update the
> information about how much files have bean processed yet.

The basic flow of information is a good idea, but giving mmpython the
popup box is bad.

> But I would tell this a little bit dirty, because I needed to change mmpython. 
> If someone is interested, I could make it a little bit nicer and post it here. What 
> do you think?

Basicly it's a good idea. You need to change mmpython, no way. But
make it cleaner: add an optional callback function to cache_dir with
two parameter: current and number of files to parse. Or something like
this. 


Dischi

-- 
Real_men_don't_need_spacebars.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to