[Tutor] python exceptions
john at fouhy.net
Mon Nov 27 03:42:41 CET 2006
On 27/11/06, johnf <jfabiani at yolo.com> wrote:
> So there are outside exception handlers? OK. thanks for the answer. For now
> that all I needed to understand.
I'm not sure that "outside" is quite the right word ..
If you write Tkinter code, you will (at some point) call mainloop().
mainloop(), in turn, will call your functions, as the user does stuff.
If your code raises an exception, mainloop() will "handle" that
exception, in that it will print some stuff out, and then go back to
looking for events. But it's still part of your program (as opposed
to, say, part of the interpreter), it's just not code that you've
Different GUIs might do things differently..
More information about the Tutor