[EMAIL PROTECTED] wrote:
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?
table.attach(scroller_v, 1, 2, 0, 1, xoptions=0)
table.attach(scroller_h, 0, 1, 1, 2, yoptions=0)
John
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/