[Glade-users] Glade catalogs folder on Windows
Joseph Piron
joseph.piron at gmail.com
Thu Jul 2 08:21:46 EDT 2009
Finally with this package installed:
http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/
I managed to get a new tab in the glade designer by coping some part of the
original catalog...
<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog version="2.16" targetable="2.14,2.12,2.10,2.8"
supports="gtkbuilder" name="opcLabel" library="gladepython" domain="glade3"
book="gtk">
<init-function>glade_python_init</init-function>
<glade-widget-classes>
<glade-widget-class toplevel="True" name="GtkAction"
libglade-unsupported="True" generic-name="action" title="Action">
<properties>
<property stock-icon="True" id="stock-id"/>
<property themed-icon="True" id="icon-name"/>
<property id="gicon" disabled="True"/>
<property id="action-group" disabled="True"/>
</properties>
</glade-widget-class>
<glade-widget-class toplevel="True" name="OpcLabel"
generic-name="opclabel" title="Opc Label">
</glade-widget-class>
</glade-widget-classes>
<glade-widget-group name="python-opc" title="Opc">
<glade-widget-class-ref name="GtkAction"/>
<glade-widget-class-ref name="OpcLabel"/>
</glade-widget-group>
</glade-catalog>
But my own widget doesn't show up.. I guess glade's python interpreter
cannot find the code of this widget which is located in a package in a
folder referenced in the PythonPAth (ie ui.opcLabel.OpcLabel)
How could I fix this ? :)
Thanks!
2009/7/2 Joseph Piron <joseph.piron at gmail.com>
> Thanks,
>
> I there such a variable for the modules files ?
>
> Br,
> Joseph.
>
> 2009/7/1 Tristan Van Berkom <tristan.van.berkom at gmail.com>
>
> I havnt tried this on win32 but if you have catalogs you want
>> to put just in a user directory, you should be able to use the
>> GLADE_CATALOG_PATH
>> environment variable.
>>
>> Then you either launch glade-3 from a shell or set the GLADE_CATALOG_PATH
>> in your user preferences (I believe on windows theres a UI you can set
>> environment
>> vars for your apps/users).
>>
>> Cheers,
>> -Tristan
>>
>>
>> On Wed, Jul 1, 2009 at 10:23 AM, John Delaney<johndelaney at gmail.com>
>> wrote:
>> > This is the location that I use on my XP box:
>> >
>> > C:\Program Files\Glade3\share\glade3\catalogs
>> >
>> > On Wed, Jul 1, 2009 at 2:29 PM, Joseph Piron <joseph.piron at gmail.com>
>> wrote:
>> >>
>> >> Dear all,
>> >>
>> >> I'm trying to integrate widgets I developed in Python in Glade. I have
>> >> written a first catalog files but I do not know where to put this file
>> on my
>> >> system. I'm running Glade 3.6 on Windows XP.
>> >> Could someone help me please ?
>> >>
>> >> Thanks in advance.
>> >> Joseph.
>> >> _______________________________________________
>> >> Glade-users maillist - Glade-users at lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/glade-users
>> >>
>> >
>> >
>> > _______________________________________________
>> > Glade-users maillist - Glade-users at lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/glade-users
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20090702/86e50922/attachment-0001.html
More information about the Glade-users
mailing list