如何使用 wxPython 检测窗口何时最小化? [英] How do I detect when my window is minimized with wxPython?

查看:33
本文介绍了如何使用 wxPython 检测窗口何时最小化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am writing a small wxPython utility.

我想使用一些事件来检测用户何时最小化应用程序/窗口.

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

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

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?

推荐答案

wx.EVT_ICONIZE 事件.

这篇关于如何使用 wxPython 检测窗口何时最小化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆