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.
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.
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.