Physical button interacting with tkinter button widget Physical button interacting with tkinter button widget tkinter tkinter

Physical button interacting with tkinter button widget


I don't see how this is even an issue since the start method should lock up the entire program, including the input from the button. If the button detection is in it's own thread or something, you could just add a check. The easiest thing to check is the tk Button state:

def start(self, *args, **kwargs):    if self.botshoot['state'] == DISABLED:        print 'already running'        return # abort this method    self.botshoot.configure(state=DISABLED)    # etc ...