Phil, I just learnt of PyOS_InputHook, which is the way that TkInter manages to work from the command line interpreter without needing an explicit event loop. I was thinking it would be great for prototyping if PyQt had this feature too... -- Giovanni Bajo