Giter VIP home page Giter VIP logo

Comments (2)

RobinD42 avatar RobinD42 commented on May 10, 2024

Royce Mitchell wrote:

Phoenix is crashing the interpreter, and when I boiled my code down to
the bare minimum I discovered it was an issue where I was catching an
exception and then trying to display it in a MessageDialog before I
had created the wx.App object.

Attached is the result of the code simplification.

Here's is the program's output from wxPython-classic:

3.0.2.0 msw (classic)
Traceback (most recent call last):
File "crash_phoenix.py", line 6, in
dlg = wx.MessageDialog ( parent=None, message='boom', caption='Crash',
style=wx.OK|wx.ICON_ERROR )
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx_windows.py", line
3631, in init
/windows/.MessageDialog_swiginit(self,/windows/.new_MessageDialog(/args,
*/kwargs))
wx._core.PyNoAppError: The wx.App object must be created first!

However, when run from phoenix, it crashes the python interpreter

Yep, this is a known issue. I haven't yet worked out how to best
implement that check with the new implementation tech. It's on the TODO
list though.

Robin Dunn
Software Craftsman
http://wxPython.org

from phoenix.

RobinD42 avatar RobinD42 commented on May 10, 2024

Phoenix is now checking for the existence of a wxApp object at appropriate places.

from phoenix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.