Hi!
Could you try to create a C example? Because otherwise it's impossible
to know if it is a problem with the python bindings or a gdl problem.
Thanks,
Johannes
Am Dienstag, den 19.02.2008, 23:18 +0100 schrieb Thomas Dybdahl Ahle:
> Hi, I'm trying to understand this gdl. Mostly from the anjuta, scaffold
> and screem sourcecodes.
>
> I have a problem with getting the loading from file working.
>
> If I do:
>
> dock = gdl.Dock()
> layout = gdl.DockLayout(dock)
> item = gdl.DockItem("board", "Board", None, gdl.DOCK_ITEM_BEH_NO_GRIP)
> item.add(gtk.Label("..."))
> dock.add_item(item, gdl.DOCK_LEFT)
>
> everything works fine,
> but if I add:
>
> layout.save_layout("__default__")
> layout.save_to_file("/home/thomas/layout.xml")
> layout.load_from_file("/home/thomas/layout.xml")
> layout.load_layout("__default__")
>
> suddently item.parrent == None and nothing appears in my window.
>
> I've added tons of shows and show_alls, but the problem seams to be,
> that the item is no longer attached to the dock. If I do
> dock.get_children() I get an empty list.
>
> Do anybody know how to overcome this?
>
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil