[wxPython-users] sizer problem: win32 vs linux?

Christopher Barker Chris.Barker at noaa.gov
Thu Jan 4 09:50:51 PST 2007


Roggie Boone wrote:
>>> I see a lot of places where I expected to see
> SetSizer >>and didn't see it.
> 
> Doh!  You are right -- I missed it in the
> MainWindow.  Added it and it looks fine on
> Linux now.  I am still curious why the Windows
> version of wxPython apparently did not need
> the SetSizer in order to display properly.

No matter how how the wx dev team tries -- there are always going to be 
some platform differences - it really is "write once -- test everywhere".

However, as you've seen, most of the time, the difference is that one 
platform or another is more forgiving of a particular mistake in your 
code -- if it's written according to the docs, it generally works on all 
supported platforms.

You might want to add this particular instance to:

http://wiki.wxpython.org/index.cgi/wxPython_Platform_Inconsistencies

My only advise is to test on all the platforms you can as early in the 
development process as possible -- it's much easier to catch mistakes 
like this early.

-Chris


-- 
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 at noaa.gov




More information about the wxpython-users mailing list