does anyone know how i would go about using a tkinter window as an output from a videosink/pipeline from within python? i have found methods for lots of other GUI systems, but i dont want to have to use tkinter and something else together xxx
thanks in advance x
does anyone know how i would go about using a tkinter window as an
Share
This works for me on Windows 32-bit. I get a seg fault on Linux or Windows 64-bit. Sorry, I don’t know about Mac.
You have to use bus.connect(“sync-message::element”, on_sync_message) and pass a Tk widget ID (winfo_id), as you can see in the following code. The container can be any Tk widget, but a solid black frame seems to work best for me.