I would like to display an error dialog for a wxpython app I have. Currently I'm using the following code that I found from a blog post that I can't seem to get to work. I added some code which I know will throw a directory name error and the error will display in the IDE but not throw up an error dialog as I would like it to.
try:
app = wx.App(False)
frame = MyScriptApp(None, "Move Tool")
app.MainLoop()
except:
import sys, traceback
xc = traceback.format_exception(*sys.exc_info())