Is there any method to handle minimize event in Tk when minimize button is being pressed, like we handle close with onDestroy().


Regards,
Joe.

I found a method by myself and would like to share this with you. There is a variable 'state' associated with MainWindow in Tk. When Tk window is minimized this variable becomes 'iconic'. By verifying this in a repeat() loop of mainwindow, we can come to know the state of the window.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.