Gorka Olaizola wrote:
> 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?

I don't remeber. That's a reason for the rewrite for 2.0. If you would
write your plugin for 2.0, you can use every item and ask it for the
menu widget.


Dischi

-- 
panic("bad_user_access_length executed (not cool, dude)"); 
kernel 2.0.38 /usr/src/linux/kernel/panic.c

Attachment: pgpe3nwxmcnCa.pgp
Description: PGP signature

Reply via email to