[pygtk] Table resize

A.T.Hofkamp a.t.hofkamp at tue.nl
Thu May 22 14:21:23 WST 2008


t_w_ at freenet.de wrote:
> 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)

The code is not entirely complete. Did you switch off the 'table.homogeneous' 
property?

Sincerely,
Albert


More information about the pygtk mailing list