How do I detect when my window is minimized with wxPython?

大城市里の小女人 提交于 2019-12-10 13:47:34

问题


I am writing a small wxPython utility.

I would like to use some event to detect when a user minimizes the application/window.

I have looked around but did not find an event like wx.EVT_MINIMIZE that I could bind to.

Anyone know of a way that can be used to detect this?


回答1:


Add a handler for the wx.EVT_ICONIZE event.



来源:https://stackoverflow.com/questions/890170/how-do-i-detect-when-my-window-is-minimized-with-wxpython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!