Difference in positioning Mac - Windows

Hi, I am finding that there is a difference in the position of items in wxpython between Mac and Windows.
So, for example, the below is putting text into a grey box. On the Mac this text is positioned correctly in the middle of the box, but on Windows the text appears to high in the grey box, very off centre.

self.displayModeTEXT = wx.StaticText(self, -1, self.params[“appMode”] + " Mode", (755, 6), style=wx.ALIGN_CENTRE)

greyBox = wx.StaticBox(self, -1, ‘’, pos=(740, 2), size=(110, 30))

I am finding this a lot, not just with text, but other objects.

Is there a way round this?

I am on Python 2.7.9 with the latest wxpython, wxPython3.0-osx-cocoa-py2.7.

Kind regards.

I would suggest using sizers rather than static positioning. You will get more uniform behavior across platforms, and resizing forms will look much better.

David

···

On Dec 26, 2014 3:08 AM, “kevjwells” kevjwells@gmail.com wrote:

Hi, I am finding that there is a difference in the position of items in wxpython between Mac and Windows.
So, for example, the below is putting text into a grey box. On the Mac this text is positioned correctly in the middle of the box, but on Windows the text appears to high in the grey box, very off centre.

self.displayModeTEXT = wx.StaticText(self, -1, self.params[“appMode”] + " Mode", (755, 6), style=wx.ALIGN_CENTRE)

greyBox = wx.StaticBox(self, -1, ‘’, pos=(740, 2), size=(110, 30))

I am finding this a lot, not just with text, but other objects.

Is there a way round this?

I am on Python 2.7.9 with the latest wxpython, wxPython3.0-osx-cocoa-py2.7.

Kind regards.

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.