wxPython gurus, please help

J

Jive Dadson

I have an application that opens an image file of the user's choice.
I have an exception handler for the case that the user selected a bad
or unsupported image file. My code is catching the exception, but
unfortunately for me, after I exit the except-clause, wxPython is
popping up its own message dialog from somewhere in deepest, darkest
__core__.

How do I make it not do that?

Thankee much,
Jive
 
P

Paul Probert

Jive said:
I have an application that opens an image file of the user's choice.
I have an exception handler for the case that the user selected a bad
or unsupported image file. My code is catching the exception, but
unfortunately for me, after I exit the except-clause, wxPython is
popping up its own message dialog from somewhere in deepest, darkest
__core__.

How do I make it not do that?

Thankee much,
Jive
In your line creating your app object do it like this to avoid
redirecting error output to a popup window:

app=wx.App(False)
 
P

Piet van Oostrum

Jive Dadson said:
JD> I have an application that opens an image file of the user's choice. I
JD> have an exception handler for the case that the user selected a bad or
JD> unsupported image file. My code is catching the exception, but
JD> unfortunately for me, after I exit the except-clause, wxPython is popping
JD> up its own message dialog from somewhere in deepest, darkest __core__.

Do you really expect an answer? Without you giving any details, like the
essential part of your code, the actual error messages etc, how do you
think that anybody will be able to divine what is happening?

http://catb.org/esr/faqs/smart-questions.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top