paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [paparazzi/paparazzi] ec5b62: add basic sig handler


From: OpenUAS
Subject: [paparazzi-commits] [paparazzi/paparazzi] ec5b62: add basic sig handler tobe able to close applicati...
Date: Fri, 03 Feb 2023 03:09:06 -0800

  Branch: refs/heads/OpenUAS-patch-1
  Home:   https://github.com/paparazzi/paparazzi
  Commit: ec5b62e5b92b73d9a65b34fc5137721a88bf6c18
      
https://github.com/paparazzi/paparazzi/commit/ec5b62e5b92b73d9a65b34fc5137721a88bf6c18
  Author: OpenUAS <OpenUAS@users.noreply.github.com>
  Date:   2023-02-03 (Fri, 03 Feb 2023)

  Changed paths:
    M sw/supervision/python/paparazzicenter.py

  Log Message:
  -----------
  add basic sig handler tobe able to close application from commandprompt

When starting the PaparazziCenter from the commandline there is no (for Posix)  
signal  handler aka [CTRL+C] to stop the program. This change implements that. 

For a more elaborate solution with own close form signal handler and adding 
more logic to it, there are numerous (also numerous wrong ones...) e.g. this 
for QT4 (older) from 2011 
https://github.com/ipython/ipython/pull/1160/commits/bd503234b04e2bb1e1aa5cfd48bd2592f392318d#diff-7657b23f600d7cae7f4611cab214806f6f03559ef0ee38a28fb25057b404486f

and a good article of one wishes to expand this solution see 
https://zetcode.com/gui/pyqt5/eventssignals/

Tested on Linux (but should work on Windows and OSX)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]