Opening a Python thread in a new console window

后端 未结 3 1483
终归单人心
终归单人心 2020-12-01 22:18

I am trying to make a program that will launch both a view window (console) and a command line. In the view window, it would show constant updates, while th

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 22:31

    Rather than use a console or terminal window, re-examine your problem. What you are trying to do is create a GUI. There are a number of cross-platform toolkits including Wx and Tkinter that have widgets to do exactly what you want. A text box for output and an entry widget for reading keyboard input. Plus you can wrap them in a nice frame with titles, help, open/save/close, etc.

提交回复
热议问题