sizer problem: win32 vs linux?

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.
Thanks again for the above solution!

Roggie

···

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

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

Christopher Barker wrote:

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.

One of the C++ devs put it like this the other day: We can ensure that correctly written code does work correctly on all the platforms, but we can not ensure that wrongly written code does *not* work on all platforms.

In other words, some mistakes may work fine (or good enough to not notice the problem) on some platforms.

···

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