On Mon, November 30, 2009 9:40 pm, Elizabeth Dodd wrote: > On Tue, 1 Dec 2009, Spart34 wrote: >> Hi, >> >> I want to display an access to Gcompris for my son in Freevo main menu. >> >> I put in my local_conf.py the following line >> *Code:* >> plugin.activate('command.CommandMainMenuItem', >> args=('/home/freevo/.freevo/fxd/gcompris.fxd'), level=45) >> >> > >> >> When i comment the first line with # everything is alright and Freevo >> run >> correctly. >> >> Have you any ideas to resolve this problem? >> >> Thanks for yours answers. >> >> Spart34 > > You have a bracket to close. > i recommend editing with an editor like kate or gvim with colour ON > then you can see the unclosed brackets and braces
Not a bracket but a minor annoyance of python syntax, you need a comma after the first item in a tuple otherwise it doesn't become a tuple just another bracketed expression. try: plugin.activate('command.CommandMainMenuItem', args=('/home/freevo/.freevo/fxd/gcompris.fxd', ), level=45) Notice the comma after ....fxd', ), level=45) I've oft fallen foul of this one. Cheers Adam ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users