I see, so just to clarify, there is no way to "capture" the dos output in a window, isn't it?
What I would like to do is similar to what happens in linux when you want to install one package with synaptic and you click to show the details during the installation (sorry but I don't know how else to explain what I need to do).
If this is not possible, thanks anyway for your help,
Should have enough hints how to do this with wxPython.
# using module subprocess to get the
# directory of drive C:\
# Python27 code
p = subprocess.Popen("dir C:\\", shell=True, stdout=subprocess.PIPE)
# allow external program to work
# read the result to a string
# (Python3 gives bytearray rather than string)
result = p.stdout.read()
The wxWin tool set is a GUI library, but you can run any C or C++ code inside your wx functions. There are C functions which will run an external program and have the ability to pipe (as shown in the python example posted by vegaseat) the output to the calling process. You capture that output and stick it in an appropriate GUI widget.