equal
deleted
inserted
replaced
399 |
399 |
400 #------------------------------------------------------------------------------- |
400 #------------------------------------------------------------------------------- |
401 # Exception Handler |
401 # Exception Handler |
402 #------------------------------------------------------------------------------- |
402 #------------------------------------------------------------------------------- |
403 |
403 |
|
404 |
404 Max_Traceback_List_Size = 20 |
405 Max_Traceback_List_Size = 20 |
405 |
406 |
406 |
407 |
407 def Display_Exception_Dialog(e_type, e_value, e_tb): |
408 def Display_Exception_Dialog(e_type, e_value, e_tb): |
408 trcbck_lst = [] |
409 trcbck_lst = [] |
501 output.write(a+":\n"+str(info[a])+"\n\n") |
502 output.write(a+":\n"+str(info[a])+"\n\n") |
502 |
503 |
503 #sys.excepthook = lambda *args: wx.CallAfter(handle_exception, *args) |
504 #sys.excepthook = lambda *args: wx.CallAfter(handle_exception, *args) |
504 sys.excepthook = handle_exception |
505 sys.excepthook = handle_exception |
505 |
506 |
|
507 |
506 if __name__ == '__main__': |
508 if __name__ == '__main__': |
507 if wx.VERSION < (3, 0, 0): |
509 if wx.VERSION < (3, 0, 0): |
508 wx.InitAllImageHandlers() |
510 wx.InitAllImageHandlers() |
509 |
511 |
510 # Install a exception handle for bug reports |
512 # Install a exception handle for bug reports |