[pygtk] Table resize
t_w_ at freenet.de
t_w_ at freenet.de
Wed May 21 20:41:36 WST 2008
Hi!
I have a table with 4 cells. A scrolledwindow attached to the top-left and custom
scrollbars top-right and bottom-left. On resizing, the left (vertical) scrollbar should
retain its width. The bottom (horizontal) scrollbar should retain its height.
I tried various things with FILL and EXPAND to no avail.
The code:
# Layout
window.add(table)
table.attach(view, 0, 1, 0, 1, gtk.EXPAND | gtk.FILL, gtk.EXPAND | gtk.FILL, 0 , 0)
table.attach(scroller_v, 1, 2, 0, 1)
table.attach(scroller_h, 0, 1, 1, 2)
# Set scrollbar width and minimum height, then resize window to something practical
scroller_v.set_size_request(16, 60)
scroller_h.set_size_request(500, 16)
view.set_size_request(500, 400)
window.resize(516, 416)
---
What can I do?
--
Thorsten Wilms
More information about the pygtk
mailing list