admin管理员组文章数量:1357294
I have been interested on win32 programming via pywin32 in python, but the document seems to be vague on how to create splitters, buttons and other things inside the main window.
As far as I have understood, any default UI buttons and other should be done inside WM_CREATE that is implemented before window becomes visible.
There is win32ui.Createsplitter, but how can I understand the use of it compared to C/C++ code?
class Window:
def window_proc(self, hwnd, msg, wparam, lparam):
match msg:
case win32con.WM_CREATE:
pass
case win32con.WM_CLOSE:
win32gui.DestroyWindow(hwnd)
case win32con.WM_DESTROY:
win32gui.PostQuitMessage(0)
return win32gui.DefWindowProc(hwnd, msg, wparam, lparam)
本文标签: python 3xHow window splitter is done in pywin32Stack Overflow
版权声明:本文标题:python 3.x - How window splitter is done in pywin32? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744075851a2586731.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论