Windows XP wxPy3 sizers not working?

Yellow area is my panel, while red is the actual Frame.

I’ve been testing my application on Windows XP (It is running in a Virtual Machine, maybe that’s why…) and noticed that sizers do not work.
Well, they DO work but only when Frame’s style has wx.CAPTION in it and doesn’t have wx.NO_BORDER.
Here are the code and the screenshot.

Btw, on Linux it works perfectly. (With wxPy 3!)

test.py (404 Bytes)

You just have to manually call a layout. Add this line:

self.Layout()

As I recall, usually Linux does this for you; WinXP (and maybe other
Windows?) doesn't.

Che

···

On Mon, Aug 25, 2014 at 11:41 AM, GamerCat <vikkindhart@gmail.com> wrote:

<https://lh5.googleusercontent.com/-na8uymHxz6I/U_tZA-wWdzI/AAAAAAAAAB4/oTeLh39FukI/s1600/Windows%2BXP%2BwxPy.png&gt;
Yellow area is my panel, while red is the actual Frame.

I've been testing my application on Windows XP (It is running in a Virtual
Machine, maybe that's why...) and noticed that sizers do not work.
Well, they DO work but only when Frame's style has wx.CAPTION in it and
doesn't have wx.NO_BORDER.
Here are the code and the screenshot.

Btw, on Linux it works perfectly. (With wxPy 3!)

Wow, thanks a lot :slight_smile:
Works perfectly

···

On Monday, August 25, 2014 6:02:30 PM UTC+2, Che M wrote:

On Mon, Aug 25, 2014 at 11:41 AM, GamerCat vikki...@gmail.com wrote:

Yellow area is my panel, while red is the actual Frame.

I’ve been testing my application on Windows XP (It is running in a Virtual Machine, maybe that’s why…) and noticed that sizers do not work.
Well, they DO work but only when Frame’s style has wx.CAPTION in it and doesn’t have wx.NO_BORDER.

Here are the code and the screenshot.

Btw, on Linux it works perfectly. (With wxPy 3!)

You just have to manually call a layout. Add this line:

self.Layout()

As I recall, usually Linux does this for you; WinXP (and maybe other Windows?) doesn’t.

Che