Handle minimize button in Tk

Reply

Join Date: Sep 2008
Posts: 2
Reputation: joecheriross is an unknown quantity at this point 
Solved Threads: 0
joecheriross joecheriross is offline Offline
Newbie Poster

Handle minimize button in Tk

 
0
  #1
Sep 18th, 2008
Is there any method to handle minimize event in Tk when minimize button is being pressed, like we handle close with onDestroy().


Regards,
Joe.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 2
Reputation: joecheriross is an unknown quantity at this point 
Solved Threads: 0
joecheriross joecheriross is offline Offline
Newbie Poster

Re: Handle minimize button in Tk

 
0
  #2
Oct 6th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Perl Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC