Python Forum
Closing a program using a G10 button
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing a program using a G10 button
#1
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?
Reply
#2
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?
Reply
#3
The program is Opencpn a marine plotter program.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Closing Threads and the chrome window it spawned from Tkinter close button law 0 1,700 Jan-08-2022, 12:13 PM
Last Post: law
  Try-except in while loop: error with closing program Lupin_III 7 2,859 Jul-03-2020, 10:57 AM
Last Post: Lupin_III
  Closing a program oldDog 4 3,353 Jul-29-2018, 10:39 AM
Last Post: oldDog

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020