I'm writing my desktop app on PySide2 (it's not important) for control Django project (run server and stop server on buttons). I realized only start server, but I can't add stop server, because stop server is click on buttons "CTRL + C"
in cmd and I don't now how to interpret clicks on buttons into code or any answers for this question.
Here is an example for "RUN server" and I need some help for "STOP server"
os.chdir(ui.lineEdit.text()) # Change directory
os.system("python manage.py runserver") # Run server in this