kopia lustrzana https://github.com/corrscope/corrscope
Quit GUI when pressing Ctrl-C in terminal (#252)
rodzic
323ce36137
commit
38a7c34f2e
|
@ -1,4 +1,5 @@
|
|||
import functools
|
||||
import signal
|
||||
import sys
|
||||
import traceback
|
||||
from pathlib import Path
|
||||
|
@ -58,6 +59,9 @@ def res(file: str) -> str:
|
|||
|
||||
|
||||
def gui_main(cfg_or_path: Union[Config, Path]):
|
||||
# Allow Ctrl-C to exit
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
# qw.QApplication.setStyle('fusion')
|
||||
QApp = qw.QApplication
|
||||
QApp.setAttribute(qc.Qt.AA_EnableHighDpiScaling)
|
||||
|
|
Ładowanie…
Reference in New Issue