[Tutor] unittest + tkinter

Alan Gauld alan.gauld at btinternet.com
Tue Nov 2 10:28:25 CET 2010


"Wayne Werner" <waynejwerner at gmail.com> wrote

> I'm trying my hand at test driven development via the unittest 
> module. Since
> my program is using Tkinter, my thought is that I need to create the 
> main
> window. The only problem is that when I launch the main loop, 
> further lines
> of code aren't executed.

Thats a feature of event driven programs. All the action takes place
inside the event loop. I don't know how you drive a GUI with unittest
though so can't help solve your problem. But the behaviour is normal
for any GUI.

Alan G.




More information about the Tutor mailing list