Running cli program within a wx window? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Running cli program within a wx window? (/thread-23935.html) |
Running cli program within a wx window? - t4keheart - Jan-23-2020 Hi everyone, is there a specific module I should be using to run the python code within a wx window? I mean, like create a gui to pop up and contain the console window showing what's happening with the program output? Similar to what you would see with many installers. I know how to create the window and all, but any suggestions on how I would proceed to display the console within the window? Also, what would you suggest for this application? Wx or PyQt? I can't seem to get pyqt working however. Thank you RE: Running cli program within a wx window? - ndc85430 - Jan-23-2020 Take a look at the subprocess module.
RE: Running cli program within a wx window? - buran - Jan-23-2020 Take a look at https://wxpython.org/Phoenix/docs/html/wx.functions.html#wx.Execute https://wxpython.org/Phoenix/docs/html/wx.Process.html#wx.Process.Redirect a bit old tutorial, but could be helpful http://www.blog.pythonlibrary.org/2009/01/01/wxpython-redirecting-stdout-stderr/ in more search https://www.google.com/search?q=wxpython+catch+output+from+wx.execute |