Pythonwin-wxPython
Gordon Williams
g_will at cyberus.ca
Tue Jun 20 09:15:56 EDT 2000
Yes this is a real drag, but the easy way to get around it is to include a
try and except and then it works with pywin and you get your traceback.
class myFrame(wxFrame):
def __init__(self, parent=NULL):
wxFrame.__init__(self, parent, -1, "wx_plot_lines",
wxDefaultPosition,wxSize(600,520))
try:
plotCanvas(self) #your panel
except:
self.Destroy() # causes main loop to exit
traceback.print_exc() # and you still get your trace
As well you need to import traceback.
Regards,
Gordon Williams
Gordon McMillan <gmcm at hypernet.com> wrote in article
<8F57DAB28gmcmhypernetcom at 199.171.54.154>...
> kupisch at hotmail.com (ratze) wrote:
>
> >My problem is that when I am developing a wxPython application
> >everytime the the start of my app fails due to an exception I cannot
> >start it again and get 'Only 1 wxApp per process!'. How do I get around
> >this??
>
> Run the wxPython from the command line. You can get around this if you
> really want to, but it's not worth the struggle.
>
> - Gordon
>
More information about the Python-list
mailing list