DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Perl (http://www.daniweb.com/forums/forum112.html)
-   -   Handle minimize button in Tk (http://www.daniweb.com/forums/thread146501.html)

joecheriross Sep 18th, 2008 10:09 am
Handle minimize button in Tk
 
Is there any method to handle minimize event in Tk when minimize button is being pressed, like we handle close with onDestroy().


Regards,
Joe.

joecheriross Oct 6th, 2008 1:11 pm
Re: Handle minimize button in Tk
 
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.


All times are GMT -4. The time now is 2:14 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC