Display the warning from the cmd file in the Gui using python script
I am creating a gui using Python script. Now sometimes I am getting a warning in the cmd line that is not visible for the end user "that uses the gui".
Now I want to create a label where the warning could be displayed for the end user. So, how can I read the data from the cmd line and display it in the Gui ????