Hello,
I'de like to exit a Tk application after some time of user inactivity.
Easiest way that comes to mind would be having bindings on widgets store [clock clicks]. The main loop could check for a difference between the variable and the current [clock clicks]. If it exceeds the time-out (in seconds), exit.
Doing this though means having correct coverage on anything that a user might consider "using" the program. You would need to be sure that all relevant widgets ( or toplevels, dialogs etc) have the required binding, not just buttons and the like.
Mike
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ vtcl-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/vtcl-user
