> It goes to wherever it is caught. The window that pops up is very
> likely due to some try/except pair in the wxPython sources,
> probably (without having digged into the sources) somewhere around
> wxApp.
It was one of those rare cases where a feature in 2.4 causes some type
of fault deep in 2.5. 2.5 is smart enough to catch these unhandled
exceptions and pop up a dialog box. I imagine that this is not a
python exception but a C++ exception. Now, if it could reach into the
python stack and pull out stack trace, that would be brilliant, but
perhaps not possible. That is what print statements are for
Anyway, the failing command that worked on 2.4 was letting a box
sizer hide one of the elements that it is laying out:
boxsizer.Hide(panel)
In any case, most everything else is handled the way that I would
expect. I managed to port my source code in about 15 minutes (around
7k source lines) The biggest pain was the DC drawing commands now use
wxPoints or tuples (point1, point2) where before they were (x1, y1,
x2, y2).
> It goes to wherever it is caught. The window that pops up is very
> likely due to some try/except pair in the wxPython sources,
> probably (without having digged into the sources) somewhere around
> wxApp.
It was one of those rare cases where a feature in 2.4 causes some type
of fault deep in 2.5. 2.5 is smart enough to catch these unhandled
exceptions and pop up a dialog box. I imagine that this is not a
python exception but a C++ exception.
Yes, it is. There was a new overridable funciton added a couple days ago that may let me do something more pythonic with those exceptions, but I havn't looked at it very hard yet.
[...]
In any case, most everything else is handled the way that I would
expect. I managed to port my source code in about 15 minutes (around
7k source lines) The biggest pain was the DC drawing commands now use
wxPoints or tuples (point1, point2) where before they were (x1, y1,
x2, y2).
Yeah, after converting stuff in the demo and lib I realized that this was going to be a bigger pain for migration than what I had initially anticipated. I think it is worth it though.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!