调用一个第三方的视频播放接口, 如果用VC做,就是建立一个窗口,然后把这个窗口的handle交给这个第三方接口就可以了,由他掌管播放, wxPython 里建立一个窗口后,好像没有handle的属性和获得handle的方法, 有知道的dx吗 ?
多谢
咋没有呢?看看下面的URL:
wxWindow and its descendants have a GetHandle method.
"""
wxWindow::GetHandle
void* GetHandle() const
Returns the platform-specific handle of the physical window. Cast it to
an appropriate handle, such as HWND for Windows, Widget for Motif or
GtkWidget for GTK.
[url]http://mail.python.org/pipermail/python-list/2003-June/211422.html[/url]
class MyWindow(wx.Frame):
def init(self,...):
....
handle = MyWindow();