On Jan 26 at 13:53, Mike Avery spoke:

> Hanspeter Roth wrote:
> >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.

What are [clock clicks]? Time since the OS booted or the program
started?

> 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.

I'd say "using" means occurrence of key-events or mouse-clicks.
Can bindings be applied to toplevels and dialogs without disturbing
the bindings of the elements (buttons, entries, ...) ?

-Hanspeter


-------------------------------------------------------
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

Reply via email to