Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 515
Jeroen Dirks Avatar asked May 20 '09 20:05

Jeroen Dirks


People also ask

What is WX frame?

Frame. A frame is a window whose size and position can (usually) be changed by the user. It usually has thick borders and a title bar, and can optionally contain a menu bar, toolbar and status bar. A frame can contain any window that is not a frame or dialog.


1 Answers

Add a handler for the wx.EVT_ICONIZE event.

like image 118
ChrisN Avatar answered Oct 01 '22 12:10

ChrisN