Hi, ALL,
I am working on wrapping some CLI python application with wxPython.
This CLI application uses 2 classes: InputReader and OutputWriter.
For the OutputWriter it defines a method called Write() which just
prints everything on the console. I implemented this using my
OutputWriter implementing Write() function to perform adding text to
wx.TextCtrl.
However I don't know what to do with InputReader. I'd like to use
wx.TextCtrl to ask user to make an appropriate selection, but its hard
as simple CLI sys.stdin.readline() does not map well to the way user
works with wx.TextCtrl or even wx.ListCtrl (in the future).
So, any idea on how to best map sys.stdin to wx.TextCtrl?
Thank you.