Python Forum
Running cli program within a wx window?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running cli program within a wx window?
#1
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
Reply
#2
Take a look at the subprocess module.
Reply
#3
Take a look at

https://wxpython.org/Phoenix/docs/html/w...wx.Execute
https://wxpython.org/Phoenix/docs/html/w...s.Redirect

a bit old tutorial, but could be helpful
http://www.blog.pythonlibrary.org/2009/0...ut-stderr/
in more search https://www.google.com/search?q=wxpython...wx.execute
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 347 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  Why is the program not running? Is there a logical or syntax problem? behi00 10 2,000 Apr-01-2023, 12:50 AM
Last Post: woooee
  tkinter window and turtle window error 1885 3 6,625 Nov-02-2019, 12:18 PM
Last Post: 1885
  [split] Closing a window but not the whole program scriptdrache 1 2,308 Jun-25-2019, 03:43 PM
Last Post: joe_momma
  [Tkinter] Closing a window but not the whole program Wiggy1 2 4,944 Jan-11-2019, 12:51 AM
Last Post: Larz60+
  Interacting with python console while program is running Murmele 2 3,286 Feb-10-2018, 05:43 PM
Last Post: kmcollins
  update a variable in parent window after closing its toplevel window gray 5 8,978 Mar-20-2017, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020