如何使用wxPython检测窗口何时最小化?

时间:2022-01-20 20:14:47

I am writing a small wxPython utility.

我正在写一个小的wxPython实用程序。

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.

我环顾四周但没有找到像我可以绑定的wx.EVT_MINIMIZE这样的事件。

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

有人知道可以用来检测这个的方法吗?

1 个解决方案

#1


Add a handler for the wx.EVT_ICONIZE event.

为wx.EVT_ICONIZE事件添加处理程序。

#1


Add a handler for the wx.EVT_ICONIZE event.

为wx.EVT_ICONIZE事件添加处理程序。