Commit 93af4c6b authored by Wilfried Mercier's avatar Wilfried Mercier
Browse files

Added two lines of code at the beginning to allow the program to catch SIGINT signal from shell.

parent 2e62468b
......@@ -39,6 +39,9 @@ from PyQt5.QtCore import Qt
from PyQt5.QtCore import QT_VERSION_STR
from PyQt5.Qt import PYQT_VERSION_STR
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
import matplotlib
matplotlib.use('Qt5Agg') # Qt5Agg backend
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
......@@ -1077,6 +1080,7 @@ def main(argv):
SAVEFILE = str(sys.argv[1:][sys.argv[1:].index('-s')+1])
print('Cleaned file shall be saved as %s' %SAVEFILE)
frame = MainWindow()
for fname in sys.argv[1:]:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment