[wxPython] Importing "old" sizers will crash wxPython DLL

We ran into some older code today that crashed as soon as we tried to run
it, and eventually traced it down to the fact that it had been importing
from the old sizer modules (wxPython.lib.sizers).

It turns out that the __init__.py in that package was crashing when trying
to show the modal dialog to indicate that the old sizers were deprecated.
I'm guessing that perhaps in the past a None parent window was valid for a
wxMessageDialog but is no longer. The actual failure is in the
dlg.ShowModal() call.

-- David

/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l@fitlinxx.com /
  > FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/

We ran into some older code today that crashed as soon as we tried to run
it, and eventually traced it down to the fact that it had been importing
from the old sizer modules (wxPython.lib.sizers).

It turns out that the __init__.py in that package was crashing when trying
to show the modal dialog to indicate that the old sizers were deprecated.
I'm guessing that perhaps in the past a None parent window was valid for a
wxMessageDialog but is no longer. The actual failure is in the
dlg.ShowModal() call.

Thanks. I guess it's time for the old sizers to actually go away.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!