How do I detect when my window is minimized with w

2019-06-22 13:01发布

问题:

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.