[wxPython-users] GridBagSizer error with a hidden item
Lee Merrill
webbily1 at nc.rr.com
Mon Sep 4 11:50:17 PDT 2006
Very helpful as always, Mr. Dunn! The extra spacer in the GridBagSizer does
the trick, now with the "parents Layout()" method, the controls are
relaidout, but not repainted, is there another call to repaint the window?
With the previous more baroque approach, the windows are somehow all
repainted.
Thanks,
Lee
----- Original Message -----
From: "Robin Dunn" <robin at alldunn.com>
Subject: Re: [wxPython-users] GridBagSizer error with a hidden item
> Lee Merrill wrote:
>> Well, I found out what I need to do after hiding or showing a control, I
>> call Layout on that control, then for that window and for every parent
>> window, I call Layout on the window's sizer and containing sizer, and
>> that seems to work. Snippet follows...
>
> A simpler approach would be to travel up the parent windows and call each
> parent's Layout() method.
More information about the wxpython-users
mailing list