I am writing a python code under Raspbian. I want to enable my button after taking a video, but it doesn't work, as I get an error message after I press the button. Please see my code below.
def doit():
*here take 5 minutes video and save*
start_video_button.enable() #NOT WORKING
start_video_button.disable()
t = threading.Thread(target=doit)
t.start()
I appreciate any help I can get.
Kind regards, ml