Added comment about why a timer is required to handle OS signals.

This commit is contained in:
Jocelyn Le Sage 2017-06-18 20:54:49 -04:00
parent 73dbacace1
commit f9deb32877
1 changed files with 3 additions and 1 deletions

4
run.py
View File

@ -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)