wx.SHAPED flag not behaving in version 2.5.2.2 (1/1)

Instead of preserving the required aspect ratio, as it did in version 2.4,
the wx.SHAPED flag now always creates a square window where the size is
determined by the smaller, vertical or horizontal, dimension of its sizer.
This is demonstrated in the attached, stand-alone example.

Regards,

David Hughes
Forestfield Software
www.foresoft.co.uk

shaped.py (1.04 KB)

David Hughes wrote:

Instead of preserving the required aspect ratio, as it did in version 2.4, the wx.SHAPED flag now always creates a square window where the size is determined by the smaller, vertical or horizontal, dimension of its sizer. This is demonstrated in the attached, stand-alone example.

Weird. I didn't think anything was done in the recent changes that would affect the wx.SHAPED calculations. I'll take a quick peek.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

David Hughes wrote:

Instead of preserving the required aspect ratio, as it did in version 2.4, the wx.SHAPED flag now always creates a square window where the size is determined by the smaller, vertical or horizontal, dimension of its sizer. This is demonstrated in the attached, stand-alone example.

Weird. I didn't think anything was done in the recent changes that would affect the wx.SHAPED calculations. I'll take a quick peek.

It was an initialization order problem.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!