Simulating 'input'

I figured it out:
when I want input I enter the applications mainloop, when the user ENTERs I break out of it
with the value, "print" what I want to the wxTextCtrl that's waiting for me in the app, then
re-enter the main loop when I want input again.
It works.