mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-14 03:29:02 +00:00
Added comment about why a timer is required to handle OS signals.
This commit is contained in:
parent
73dbacace1
commit
f9deb32877
4
run.py
4
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)
|
||||
|
Loading…
Reference in New Issue
Block a user