XiouXin Huang wrote: > Hi, all > > If I just move arround a menu with some items, and > never select/enter any single item, how do I know > my position of current menuitem that I stop at? > > To make it clear, There's a menu with 10 items in it, > then I press "up" or "down" button to navigate this menu, > if I stopped at, but not entered into the 5th item, > how do I know its index? > > Maybe I'm too stupid, I didn't see any simple function > available in src/menu.py. > > Any hint would be appreciated, THX!
Are you asking about Freevo-1, I suspect that you are. I think that the menus are a list of item objects, you can use the index method of a list to find its position. HTH Duncan ------------------------------------------------------------------------- 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