Re: Loading gdl layout from file
Johannes Schmid <[email protected]>
| Newsgroups | gmane.comp.gnome.devtools |
|---|---|
| Message-ID | <1203519760.6244.35.camel@idefix> |
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?
>
_______________________________________________
gnome-devtools mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-devtools
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHvEEQAvZZn2XJ+bMRAodVAJ9UbR0dw0myMsRbEjnm9/mfj4OQAwCfRyT4 PgrkZIBfPPjZUHzdq2ipTC8= =HpIQ -----END PGP SIGNATURE-----