I am quiet newbie in the wxPython and I would like to ask you for your help and advice in this issue... I am trying to redirect standard/error outputs of some child process into the TextCtrl widget while parent GUI of this process is still running and waiting for child process to finish.
The subprocess module is used for child process spawning. Here is simplified script:
File "C:\Programs\Python27\lib\subprocess.py", line 531, in _get_handles
c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
AttributeError: 'TextCtrl' object has no attribute 'fileno'
I already tried redirect stdout (sys.stdout) and stderr (sys.stderr) globally in application and it really redirects all print("...") messages into TextCtrl widget, but not output of process spawned by subprocess module...
Main target is to do simple GUI wrapper around awesome avrdude tool. But I am stuck at this point. Is there way how to use TextCtrl widget as subprocess pipe on MS Windows platform? Or another suitable way?
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.