Tk-LockDisplay
view release on metacpan or search on metacpan
LockDisplay.pm view on Meta::CPAN
#
# Stephen.O.Lidie@Lehigh.EDU, Lehigh University Computing Center. 98/08/12
#
# This program is free software; you can redistribute it and/or modify it under
# the same terms as Perl itself.
use 5.004;
use Carp;
use Tk::Toplevel;
use strict;
use base qw/Tk::Derived Tk::Toplevel/;
Construct Tk::Widget 'LockDisplay';
sub Lock {
# Realize the dialog, start the screensaver and snooze timer events, clear the password entry, save the current
# focus and grab and set ours, raise the dialog and wait for the password, release our grab, clear timers, hide
# the dialog and restore the original focus and grab. Whew. (Of course, no timer stuff unless we're animating.)
my($self) = @_;
( run in 0.714 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )