[pygtk] Saving and restoring layout of HPaned
Sebastian Pölsterl
marduk at k-d-w.org
Sat Aug 11 22:54:57 WST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I have a window that contains a HPaned. This HPaned has an additional
HPaned packed on the right so that I have a 3 panes. The pane on the
left can be hidden. If it's show method is called I don't want that the
window's width to increase, therefore I set the "resize" property of the
child in the second pane to True and to False for the child in the third
pane.
- -----------------------------------------
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
- -----------------------------------------
I monitor the position property of both panes and store the value. If
the application is restarted I want to restore the width of all three
panes. I tried to do this with set_position, but this doesn't set the
width of the panes as I expected.
In addition, I tried to set the width with set_size_request for the
children. The width is correct now, but shrinking the panes doesn't work
now.
Does somebody know how can achieve what I want?
- --
Greetings,
Sebastian Pölsterl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGvc3A1ygZeJ3lLIcRAiqIAJ9oucG+RikWl9MXOYGgM1oGBedI4ACfcSOX
FEEe1QtqgTiOnQajYJcQwCU=
=5aVp
-----END PGP SIGNATURE-----
More information about the pygtk
mailing list