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.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...