wx.Slider displayed weird on mac os

Hi,

I am trying to create a wx.Slider, it looks ok on win7, but weird on mac os(as attached screen shot). The value always displayed on the top left corner of panel, instead of under the slider bar.

I am using python2.7.1, 2.9.4.0 osx-cocoa.

Does anybody know whether it is the problem with my code?

Thanks,

Shannon

slider.py (589 Bytes)

Please create a ticket about this at trac.wxwidgets.org (search for an existing one first) and include your code and screenshot.

It looks like if the slider is moved and/or resized, such as what might happen if it is managed by a sizer, then it redoes the layout of the slider correctly. See my modified example attached.

slider.py (920 Bytes)

···

On 1/15/13 8:28 PM, Shannon wrote:

Hi,
I am trying to create a wx.Slider, it looks ok on win7, but weird on mac
os(as attached screen shot). The value always displayed on the top left
corner of panel, instead of under the slider bar.
I am using python2.7.1, 2.9.4.0 osx-cocoa.
Does anybody know whether it is the problem with my code?

--
Robin Dunn
Software Craftsman