[pygtk] Prevent expansion of combobox in a table
Durand
durand1 at gmail.com
Sat May 22 07:41:26 WST 2010
Hi Don,
Thanks for that! I actually found the answer about 1 minute before your
reply so good timing there! Actually, it's slightly different to what you
suggest. Using gtk.SHRINK seemed to do the trick but I guess gtk.EXPAND
has a similar effect.
Durand
On Sat, 22 May 2010 00:18:21 +0100, Don Question
<donquestion at rocketmail.com> wrote:
> Hi Durand,
>
> my guess is you don't want the child widgets to fill the extra space.
> So i guess you should be able to solve your problem with the following
> change
> in line 59:
>
> ---snip--
> table.attach(self.kanji_entry, 0, 2, 0, 1, xoptions=gtk.EXPAND,
> yoptions=gtk.EXPAND)
> --snap--
>
> the default behaviour is xoptions=gtk.EXPAND|gtk.FILL and
> yoptions=gtk.EXPAND|gtk.FILL.
>
> Hope this solves your issue.
> Don
>
>
More information about the pygtk
mailing list