Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 wx.Python (hWnd) 中获取当前窗口的句柄并将其样式设置为 WS_EX_NOPARENTNOTIFY,或者我可以在初始化框架时设置它吗?
这个问题是这里的答案的结果
尝试这个?
frame.SetExtraStyle(4)
此外,frame.GetHandle()将返回 HWND。但这一切听起来很糟糕。
frame.GetHandle()
尝试这个
self.Show(True) self.Show(False) self.Show(True) self.GetHandle()