Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- video_window = self.gui.movie_window.get_property('window')
- ctypes.pythonapi.PyCapsule_GetPointer.restype = ctypes.c_void_p
- ctypes.pythonapi.PyCapsule_GetPointer.argtypes = [ctypes.py_object]
- drawingarea_gpointer = ctypes.pythonapi.PyCapsule_GetPointer(
- video_window.__gpointer__,
- None
- )
- gdkdll = ctypes.CDLL ("libgdk-3-0.dll")
- gdkdll.gdk_win32_window_get_handle.restype = ctypes.c_void_p
- gdkdll.gdk_win32_window_get_handle.argtypes = [ctypes.c_void_p]
- handler = gdkdll.gdk_win32_window_get_handle(drawingarea_gpointer)
- self.videosink.set_window_handle(
- handler
- )
Advertisement
Add Comment
Please, Sign In to add comment