Python Forum

Full Version: Closing a program using a G10 button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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?
The program is Opencpn a marine plotter program.