i am new in the 'Python world' and i am (trying to) make a photobooth for my kids.
i bought a picamera and wrote a python script for it.
the python script it's simple (like the examples of the picam):
open the picamera, show the preview window, sleep for 5 seconds and take the picture.
well... until now, not big deal...
but when i try to put the preview window in the front of the tkinter window, doesn't work!
i know that it's not possible put picamera preview image to the tkinter frame, but we can fake it with preview window.
but every time that i run the program, the camera shows up for 5 seconds, take the picture and just after that the tkinter builds the window.
i am trying subprocess but nothing changed, here's the code (in the camera file):
Code: Select all
proc=Popen(["python", "gui.py"], stdout=PIPE)
output=proc.communicate()[0]
#start the camera settings, preview window and bla bla bla...
PLEAAAASE, I SERCHED FOR EVERY PAGE ON GOOGLE AND THE FORUM AND NOTHING =/