Real-time exchange of gui, cmd information with Python

Asked 1 years ago, Updated 1 years ago, 114 views

If you click a button in the gui, the cmd window appears, and in that cmd window, It is responsible for analyzing and printing data. I want to copy the strings that are output to qtextedit in gui and import them in real time. What method should I use?

python3.6

2022-09-22 19:01

1 Answers

The cmd window should not be the problem.

The exact question is that I want to communicate with other processes No?

Click the button to fork one process and communicate with that forked process I think so.

IPC methods vary.

Please refer to the link below for Python. https://docs.python.org/3.6/library/multiprocessing.html#sharing-state-between-processes


2022-09-22 19:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.