This quick patch allows you to set the format of the idlebar clock from the
config file, as in the following example:

plugin.activate('idlebar.clock', args=('%a %H:%M', ));

While doing this I noticed that it is not sensible to use seconds, as the
idlebar only updates every few seconds.  Also, the size of the clock is
currently fixed so using a long format makes it go off the screen.

Richard




Index: src/plugins/idlebar.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/idlebar.py,v
retrieving revision 1.28
diff -r1.28 idlebar.py
214c214
<     def __init__(self):
---
>     def __init__(self, format='%a %I:%M %P'):
215a216
>       self.timeformat = format
218c219
<         clock = time.strftime('%a %I:%M %P')
---
>         clock = time.strftime(self.timeformat)




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to