Re: Use local lang file

Thomas Dybdahl Ahle <[email protected]>
Newsgroups gmane.comp.gnome.devtools
Message-ID <[email protected]>
lør, 06 01 2007 kl. 11:10 +0100, skrev Paolo Maggi:
> > I get an error when trying to set it though,
> > manager = SourceLanguagesManager()
> > manager.set_property("lang-files-dirs", "/home/thomas/Desktop")
> > TypeError: property 'lang-files-dirs' can only be set in constructor
> > 
> 
> As the error reports, 'lang-files-dirs' is a constructor only property,
> so you should set it while constructing the object.

ok, I found a way: manager = gobject.new(SourceLanguagesManager,
lang_files_dirs=["..."])
The pygtk people told me that _ or - are the same here, as
lang-files-dirs is not a legal variable name.

Now I get another strange error though: TypeError: could not convert
value for property `lang_files_dirs' from list to gpointer.

The same goes for tuple. And the pygtk gpointer doc doesn't give much
help either:
http://www.moeraki.com/pygtkreference/pygtk2reference/class-gobjectgpointer.html

-- 
Med venlig hilsen,
Best regards,
Thomas

_______________________________________________
gnome-devtools mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-devtools
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.