Torben Janssen wrote:
> Hi,
>
> I'm trying to write a little plug-in.
>
> For now I can enter the plug-in from the moviemenu.
> The plug-in gets the data and shows them as MenuItems
> as list. When I press ENTER it executes the given
> function and it shows a pop-up.
> That works perfectly. 
> Now I want to have the ability to change the behavior
> of the list, i.e. to sort the list. I need an event-
> handler i think. But everything I tried to add one 
> does not work.
>
> How can I add an eventhandler? Or can I reach my goal
> another way?

I should work if your item (or parent item) has a function called
eventhandler with the parameter args=None, menuw=None. If you do,
remember to call the eventhandler from the class you inherit from at
the end, e.g. 'return Item.eventhandler(self, arg-arg,
menu=menuw). See playlist.py as example.


Dischi

-- 
Always remember you're unique, just like everyone else.


-------------------------------------------------------
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

Reply via email to