I don't know the whole history, so I'll ask whether wxWidgets and/or
wxPython started out primarily for Windows? I've run across some rather
basic things that work properly on Windows but not on Mac or (Ubuntu) Linux.
Bruce,
Regardless of history, wxMac is definitely not as well supported. One
reason is that it simply doesn't get as much use, either from end
users or core developers. Another reason is that the Mac platform has
changed a lot more over the history of wx -- the shift from the old
MacOS to carbon, and now an even bigger change to Cocoa.
However the most common cases are that the different platforms are a
bit different, an often something works on one and not others.
Usually, there is a "right way" to do it that works on all platforms,
but you don't always stumble upon that way with your first go -- you
try something, it works, and you move on.
As a result, whatever platform you do your primary work on is going to
appear to work "better" than the others
So testing on all the platforms you want to support early and often is key.
In wx.StaticText, centre and right styles are ignored on Mac/Linux. They
work on Windows.
wx.StaticText is a wrapper around the platform-native static text
widgets, which are often not even full widgets -- so they have some
cire differences. You may want to try GenStaticText(), it's written in
Python, is a "proper" wx.Window, and should be more platform-neutral.
I was misled by the fact that I was setting the label in the constructor, without use of
SetLabel, and that worked on Windows. Then later, when I tried the program on Mac
and Linux and it failed, I didn't think to look at other style options.
This is a good thing to put in:
http://wiki.wxpython.org/wxPython%20Platform%20Inconsistencies
-Chris
···
On Sat, Feb 9, 2013 at 2:29 PM, Bruce Sherwood <bruce.sherwood@gmail.com> wrote:
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov