[Glade-users] adding custom widgets

On Tue, Apr 21, 2009 at 4:27 PM, Gerald Britton
<gerald.britton at gmail.com> wrote:
No real difference with those changes. ?Same error messages.

$ glade-3 --version
glade3 3.6.1

Errr, same error messages ? unable to load gramspwidgets or unable to
load python ?

Are you sure you have the

Here is btw a snapshot of what the python module does, basically it
loads the interpretor
and imports your catalog name at init time:

I believe your python script might be wrong too, it should include the
actual widget

I really have to hunt down Juan to explain all this stuff since its
his responsibility....


On Tue, Apr 21, 2009 at 4:25 PM, Tristan Van Berkom
<tristan.van.berkom at gmail.com> wrote:
On Tue, Apr 21, 2009 at 4:18 PM, Gerald Britton
<gerald.britton at gmail.com> wrote:
I found a better resource:


At least it makes more sense to me than the first one. ?I followed the
instructions, saved my catalog and module like the ones there, then
fired up Glade-3.

I set the environment variables:

$ env |grep -i GLA

Here's the catalog

$ cat catalogs/grampswidgets.xml
<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="grampswidgets" library="grampswidgets"
? ? ? ? ? ? ? ? ? ? ? ? ? ?domain="glade-3" depends="gtk+" language="python">

Right, that is a great example but predates the api that we had settled on,
try simply removing the "language" statement and setting library="python",
let me know what happens .... ;-)

? ? ? ?-Tristan

PS: we are talking about Glade 3.6.x right ?...

Gerald Britton

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