Pascal Schirrmann wrote:
> Duncan Webb a écrit :
>> By default the idlebar is installed, have you removed it?
>   
> Actually, I didn't do anything of this sort. In the local_conf.py, the line
> plugin.activate("idlebar")
> was commented out, but a
> freevo plugins -l
> told me that the plugin is activated.

It's activated by default and has to be explicitly removed to turn it off.

>> The draw function of the idlebar sets free_space so the only thing that
>> could cause this problem is if the plugins/idlebar/encoding is activated
>> before the idlebar, where do you have the idlebar.encoding in your
>> local_conf.py?
>   
> To be sure, I remove the comment, so the idlebar plugin was way before 
> the idlebar.encoding
> 
> (in fact, whenever i activate a new plugin, i do
> freevo plugins -i idlebar.encoding >>local_conf.py
> and then, i comment out the line i don't need. Some kind of 
> "auto-documentation" :-) )
>
>> It's not a bad fix but should be done in the idlebar.__init__.py function.
>>   
> I have a lot to learn about theses __init__.py file, I think :-)
> 
> OK, modifying plugins/idlebar/__init__.py, in the
> def __init__ (self )
> i added
> self.free_space = 0
> and it works, but it seems crazy to me to start telling that there is no 
> more free space ?
>
> I'm in debug mode and the last message is
> idlebar_max: 800 free_space: 0

idlebar_freespace is calculated every time the idlebar is redrawn, once
a minute or so but when an audio player is running once a 1/10th second.

The __init__.py is the same as an __init__ function it is called once
when the module is loaded.

I'm a bit surprised that the idlebar has not been drawn when the
idlebar.encoding plug-in is being started, it works fine for me on two
machines. Anyway I'll added it to the __init__.py function so that it
will not crash.

Duncan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to