470,618 Members | 1,701 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,618 developers. It's quick & easy.

exception handling in Tkinter

In wxPython I install a top-level exception handler to intercept
exceptions and display them in the GUI.

With Tkinter, I'm trying to do the same.

in __init__

sys.excepthook = self.ExceptionHandler

def ExceptionHandler(self, type, value, tb):
tblist = traceback.format_tb(tb)
for line in tblist:
text += line
self.errorDialog(text)

But it's not being called on exceptions. Any ideas?

Thanks,
Mike

Mar 31 '06 #1
0 1020

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jane Austine | last post: by
2 posts views Thread by wes weston | last post: by
2 posts views Thread by Michael Zhang | last post: by
11 posts views Thread by adi | last post: by
3 posts views Thread by Master of C++ | last post: by
2 posts views Thread by tom | last post: by
44 posts views Thread by craig | last post: by
1 post views Thread by George2 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.