It seems to be working now, with debugging I found that I had to set poll_counter = 0 after updating poll_interval.
One thing remains. When player is detached and one selects a new song while already playing; what should I look for? The plugin doesn't get any events if this scenario occurs, and therefore the bar will still be visible on top of the player. I've tried setting self.event_listener = True on the daemonplugin, but no events seem to be getting through except START and END. On Thursday 11 December 2003 13:12, Dirk Meyer wrote: > Viggo Fredriksen wrote: > > > I've tried adjusting the poll_interval when I don't need it to draw. Eg. > > setting it to 10 when drawing, 99999 when not. It does however not seem > > to change after the interval is set for the first time in the __init__. > > > The poll() in the main loop looks like this: > > > | for p in poll_plugins: > | if not (rc_object.app and p.poll_menu_only): > | p.poll_counter += 1 > | if p.poll_counter == p.poll_interval: > | p.poll_counter = 0 > | p.poll() > > > So it should matter if you change poll_interval. Try to add some debug > here to see why it doesn't work. > > > Dischi > > -- > Clothes make the man. Naked people have little or no influence on > society. - Mark Twain > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Freevo-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/freevo-devel > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel