wx Python источник (test.py
):
class Test(wx.Frame):
def __init__(self):
...
self.Bind(wx.EVT_BUTTON, self.OnTest)
...
def OnTest(self, evt):
try:
a=1/0
except:
raise
Трассировка:
Traceback (most recent call last):
...
rv = wx.PyApp.MainLoop(self),
File "<string>", line 13, in OnTest
a=1/0
ZeroDivisionError: division by zero
Ожидание ( test.py вместо <string>
):
Traceback (most recent call last):
...
rv = wx.PyApp.MainLoop(self),
File "test.py", line 13, in OnTest
a=1/0
ZeroDivisionError: division by zero