[pygtk] Weighted Hboxes

Bertrand Son Kintanar b3rxkintanar at gmail.com
Fri Oct 9 02:38:41 WST 2009


On Thu, Oct 8, 2009 at 8:43 PM, samwyse <samwyse at gmail.com> wrote:

> First off, yes this request can be approximated via a Table; that just
> seems like overkill, however.
>

I dont think this is duable in HBox. Care to enlighten us why you wouldn't
use Tables for this instead and why you claimed that using Tables in this
scenario is overkill?

>
> I need a Weighted Hbox.  By that, I mean that the pack_start and
> pack_end methods would have a weight parameter, defaulting to 1 and
> ignored unless expand is True.  Any child with a weight of 2 would
> occupy twice the space of one with a width of 1.
>
> Has anyone seen such a thing before?  If not, can anyone estimate how
> difficult sub-classing Box or HBox would be (since I need to
> manipulate the widths of the children), or should I just start at
> Container and re-implement all of the Box functionality?
>
> Thanks!
>



-- 
b3rx

"Don't be trapped by dogma - which is living with the results of other
people's thinking. - Steve Jobs"

`There are only 10 types of people in the world — those who understand
binary, and those who don't.'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20091009/df27e265/attachment.htm 


More information about the pygtk mailing list