On Thu, Jul 24, 2008 at 01:14:30PM +0800, XiouXin Huang wrote: > > The situation is, I wrote a test plugin to gather system information. > The menu in question has dynamic items, they are refreshed every 30 seconds. > Each item show some kind of information in "description" area. > If I want to constantly monitor CPU usage shown in the 5th item, > I navigate and stop at the 5th item, the information is displayed in > "description" area, > but the menuw.refresh() always take me back to current_menu.choices[0]. > Can I be fixed at where I just stopped the navigation bar? > I used something like this in an ItemPlugin
def aspect(self, arg=None, menuw=None): menuw.menustack[-1].selected.name = 'new name' self.skin.force_redraw = True self.skin.draw('menu', menuw) That way I change the name of the selected entry in the menu and refresh the screen without moving the pointer. Hope it is useful
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel