[pygtk] Proportional column sizes in a TreeView
alex goretoy
aleksandr.goretoy at gmail.com
Wed Mar 11 03:36:08 WST 2009
use set_size_request() on treeview to prevent it from resizing when window
does.....I haven't tested it, but it should work
-Alex Goretoy
http://www.goretoy.com
On Sun, Mar 8, 2009 at 2:57 PM, Joaquin Sargiotto <
joaquinsargiotto_2 at hotmail.com> wrote:
> 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!
>
> ------------------------------
> El nuevo Messenger es más personalizable que nunca ¡Conocelo y conseguí el
> tuyo! <http://www.nuevomessenger2009.com/>
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090310/d83895db/attachment-0001.htm
More information about the pygtk
mailing list