S
Sam Berry
Hey,
I'm fairly new to python, and have had no experience with threading.
Iv made a small GUI App using the kivy module and OpenCV, i have currently got a button that when pressed runs a function that records from my webcam for 20 seconds.
However i have two other buttons, that when pressed i want to stop the recording. However when the button to record has been pressed the App freezes until the recording function has finished.
I have read that threading can be used to run a function as a deamon? so that other functions can be ran simultaneously?
I was just wondering if this would be the way to go, or if there are alternative routes?
A snippet from my code can be seen at (http://pastebin.com/9uFRjkgV) with a failed attempt of using threading!
Any help would be appreciated.
Thanks, Sam
I'm fairly new to python, and have had no experience with threading.
Iv made a small GUI App using the kivy module and OpenCV, i have currently got a button that when pressed runs a function that records from my webcam for 20 seconds.
However i have two other buttons, that when pressed i want to stop the recording. However when the button to record has been pressed the App freezes until the recording function has finished.
I have read that threading can be used to run a function as a deamon? so that other functions can be ran simultaneously?
I was just wondering if this would be the way to go, or if there are alternative routes?
A snippet from my code can be seen at (http://pastebin.com/9uFRjkgV) with a failed attempt of using threading!
Any help would be appreciated.
Thanks, Sam