[Sugar-devel] gtk.Label expanding/aligning issue

Tomeu Vizoso tomeu at sugarlabs.org
Sun Sep 20 08:39:29 EDT 2009


[forwarding to list]

On Sat, Sep 19, 2009 at 21:34, Lucian Branescu
<lucian.branescu at gmail.com> wrote:
> Just in case anyone googles for this, it's a weird behaviour of gtk.
>
> Solution here http://www.daa.com.au/pipermail/pygtk/2009-February/016593.html
>
> 2009/9/19 Lucian Branescu <lucian.branescu at gmail.com>:
>> I'm not sure how to explicitly set the vbox to expand. I add it to the
>> Scrolled Window with add_with_viewport and that can't take and
>> expand/fill arguments.
>>
>> 2009/9/19 Tomeu Vizoso <tomeu at sugarlabs.org>:
>>> On Sat, Sep 19, 2009 at 15:38, Lucian Branescu
>>> <lucian.branescu at gmail.com> wrote:
>>>> To be more precise, I'd like all the text except the first paragraph
>>>> to extend to the left and right borders.
>>>
>>> Do you know if the vbox they are in extends to those borders or not?
>>>
>>> I use to write a small gtk script that reproduces the widget hierarchy
>>> so I can play more easily with the different options.
>>>
>>> Regards,
>>>
>>> Tomeu
>>>
>>>> 2009/9/19 Tomeu Vizoso <tomeu at sugarlabs.org>:
>>>>> On Fri, Sep 18, 2009 at 23:10, Lucian Branescu
>>>>> <lucian.branescu at gmail.com> wrote:
>>>>>> I'm having trouble with making a gtk.Label expand to the whole screen.
>>>>>
>>>>> You mean the whole screen or the whole available space?
>>>>>
>>>>>> I've tried various combinations of box packing options, label props
>>>>>> and box props, no success so far.
>>>>>
>>>>> AFAICS, you have all the expand=True and fill=True that should be
>>>>> necessary. From just looking at the code, I would suspect the scrolled
>>>>> window is having an unexpected effect.
>>>>>
>>>>>> My code lives here http://github.com/lucian1900/webquest
>>>>>
>>>>> Very clean code, congrats!
>>>>>
>>>>>> I've also attached a screenshot with this.
>>>>>
>>>>> What's the problem with this, you would like the text to extend also
>>>>> to the left and right borders?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Tomeu
>>>>>
>>>>> --
>>>>> «Sugar Labs is anyone who participates in improving and using Sugar.
>>>>> What Sugar Labs does is determined by the participants.» - David
>>>>> Farning
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> «Sugar Labs is anyone who participates in improving and using Sugar.
>>> What Sugar Labs does is determined by the participants.» - David
>>> Farning
>>>
>>
>



-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning


More information about the Sugar-devel mailing list