[pygtk] Proportional column sizes in a TreeView

Joaquin Sargiotto joaquinsargiotto_2 at hotmail.com
Mon Mar 9 04:57:47 WST 2009


Hi everyone! I was wondering... is there any way to make the width of the columns proportional to the size of the TreeView. (e.g. 1st col=80%, 2nd col=5%, 3rd=15%)??
The situation is this: I have a TreeView with 2 columns each have its own CellRenderer (I made them). When the window is resized so is the TreeView on it, but the first column maintains the same width and the second column fills the new space if the window is bigger or get smaller if the window is smaller too. What I want is make the columns to keep the same aspect no matter what size the window is (I'm not worried about getting the columns too small because I've set the minimun size for the window).
I am sorry if the question is too noob, but I can't find the answer into the reference doc.
Thanks!

_________________________________________________________________
¿Querés saber cómo va a estar el clima mañana? Ingresá ahora a MSN
http://tiempo.ar.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090308/eed1d152/attachment.htm 


More information about the pygtk mailing list