Sizer issues on Win2k with Find/Replace Dialog at ZetCode. Help?

Hi Robin and All,

···

On Mon, Feb 25, 2008 at 1:44 PM, Robin Dunn <robin@alldunn.com> wrote:

> Jan has some very nice wxPython tutorials at ZetCode.
> wxPython tutorial - Python GUI programming in wxPython
>
> I'm trying to understand why the Find/Replace Dialog doesn't work for
> me. It apparently works fine with his Linux installation, but he is
> using an older version of wxPython, and he doesn't have a Windows box
> to test the code.
>
> Can anyone offer any ideas why all of the widgets in the Dialog end up
> on top of each other at the top left corner on Windows 2000?

Try adding this line just before the ShowModal call:

         self.SetClientSize(panel.GetBestSize())

Thanks very much for the explanation and the fix. It works great.

Cheers,
Scott.