Python Forum
Closing a program using a G10 button - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Closing a program using a G10 button (/thread-33749.html)



Closing a program using a G10 button - MBDins - May-23-2021

I am looking for a Python script to close a program using a push button connected to a G10 pin on a Raspberry Pi4. Can anybody help please?


RE: Closing a program using a G10 button - deanhystad - May-23-2021

What program? Are you trying to add an exit condition to a program you wrote, or are you writing something like windows task manager that can kill a running program?


RE: Closing a program using a G10 button - MBDins - May-23-2021

The program is Opencpn a marine plotter program.