freevo-devel@lists.sourceforge.net schrieb am 01.05.05 21:41:07:
> 
> Hello everybody,
> 
> I am looking for making a MainMenuPlugin for freevo. It should appear in
> the main menu and all py files have to be in a new directory in src.
> (ex: .../src/test/*.py)
> 
> For the moment I succeed in making a PluginInterface, but I don't find a
> lot of documentation to understand how to create my plugin entirely. I
> don't find how to set the name of my plugin in the main menu too.
> 
> Somebody can help me? Or give me some links to documentations?
> 
> Thank you,
> 
> Oxy. 
> 
> 
> 
> 

Hi,

just a few thoughts, I am not expert, but maybe this is nevertheless helpful:
1) An very easy main menu plugin is "shutdown.py", maybe you can use it as a 
example
2) The code of a main menu plugin should go into src/plugins as far as I know
3) A main menu plugin should contain the following:
class PluginInterface(MainMenuPlugin):
    """
    Documentation that is shown by freevo plugins -i plugin name.
    """
    def items(self, parent):
        return [ PLUGINITEM(parent) ]

4) you should create a class PLUGINITEM with the menu entries for your plugin,
here you can define with self.name = 'Something' what should be displayed 
in the main menu.  

Hope, this helps a bit.







______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to