问题
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