I have a python script running with a PyQt5 GUI on a machine with a real monitor and a dummy monitor. The dummy monitor is for me to use when I log in remotely with VNC server, so I can have a desktop on which do my thing, without interfering with what's displayed on the real monitor.
Every once in a while my script crashes and when it does, this error is displayed:
This gets displayed on the dummy monitor, not the real monitor. So whoever is looking at the real monitor doesn't realize that the GUI is frozen and that python has crashed. Neither do they have any way to acknowledge the prompt and restart the script. I would like Python to, if it absolutely must crash, just die quietly and get off the screen, rather than hold the machine ransom for an acknowledgement of its death.
is there any way to make it do that?
This script is started with a desktop shortcut to batch file, if that helps. Maybe is some batch command that I could add like:
Every once in a while my script crashes and when it does, this error is displayed:
This gets displayed on the dummy monitor, not the real monitor. So whoever is looking at the real monitor doesn't realize that the GUI is frozen and that python has crashed. Neither do they have any way to acknowledge the prompt and restart the script. I would like Python to, if it absolutely must crash, just die quietly and get off the screen, rather than hold the machine ransom for an acknowledgement of its death.
is there any way to make it do that?
This script is started with a desktop shortcut to batch file, if that helps. Maybe is some batch command that I could add like:
hypothetical.bat:
venv\Scripts\Python.exe -justF*ingDIE mulitThreadedGUI.py