in reply to GUI input wait?

There is a more elegant way. I think that Wx apps are event based, so you can just do everything after your while loop into the appropriate event handler.