Ah, that was easy. It works. 
Thanks!

 --- Dirk Meyer <[EMAIL PROTECTED]> skrev: > Jortan wrote:
> > Thanks for your help but I can't get it working. It's my lack of
> > knowledge in Python programming that is the main problem. 
> >
> > I can't figure out how to return 'items', how does this list look
> like?
> > I've tried serveral ways but this is, basically, what I want:
> >
> > class PluginInterface(plugin.MainMenuPlugin):
> >         def items(self, parent):
> >                 items = []
> >                 items.append(MenuItem('Grab todays Dilbert strip',
> > self.get_strip1))
> >                 return [ items ]
> 
> Only 'return items'. items is a list, if you return [ items ] you
> return a list in a list. 
> 
> 
> Dischi
> 
> -- 
> It might look like I'm doing nothing, but at the cellular level I'm
> really quite busy.
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Freevo-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-users 

Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen 
http://se.docs.yahoo.com/travel/index.html


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to