Re: Use local lang file



Hi,

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

I have no idea how you can do this in Pyton (since I don't know Python).
In C you should write something like:

|
| GSList *dirs = ...
|
| lm = GTK_SOURCE_LANGUAGES_MANAGER (g_object_new
(GTK_TYPE_SOURCE_LANGUAGES_MANAGER,
|                                                  "lang-files-dirs",
dirs,
|                                                  NULL));
|

Regards,
Paolo





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]