From f9deb32877df4bddc9bc2a760e345a960350c0df Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Sun, 18 Jun 2017 20:54:49 -0400 Subject: [PATCH] Added comment about why a timer is required to handle OS signals. --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 1d6ecd35..6dfcf752 100644 --- a/run.py +++ b/run.py @@ -49,7 +49,9 @@ def main(): install_gettext_trans_under_qt(locale_folder, lang) # Handle OS signals setUpSignals() - # Let the Python interpreter run every 500ms to handle signals. + # Let the Python interpreter runs every 500ms to handle signals. This is + # required because Python cannot handle signals while the Qt event loop is + # running. from PyQt5.QtCore import QTimer timer = QTimer() timer.start(500)