I need to get the main MenuWidget from a DaemonPlugin. The only way it
seems possible is in an evenhandler but the menuw parameter is always
None but one time:

freevoscreensaver.py (110): Saver saw PLUGIN_EVENT IDENTIFY_MEDIA
freevused.py (148): Menu: <menu.MenuWidget instance at 0xb3a841ac>
freevused.py (152): Menu name to send: Ver la televisión

I'm trying to send the selected menuitem name to the phone when a Menu event
arrives but it seems that there is no menuWidget associated with the events
of the menu.

The only way I can think right now is to captura the IDENTIFY_MEDIA event
and get the menu in a self.menu variable but I think this is a bit dirty. 

Is there a better way I can get the current menu structure?

-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to