in reply to Re: Make top level window unclosable Perl tk
in thread Make top level window unclosable Perl tk

Your suggested code did not work
$toplevel->protocol('WM_DELETE_WINDOW', q());

but this did
$mw->protocol(WM_DELETE_WINDOW => sub { $mw->raise } );

I appreciate the reply and help!! The MW can still be pushed to the background.

Replies are listed 'Best First'.
Re^3: Make top level window unclosable Perl tk
by choroba (Cardinal) on Jan 21, 2014 at 23:24 UTC
    Yeah, check the update.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Sorry, I didn't see the update but I am still able to push the MW to the background and continue using my computer =( I need a solution that disables all usage until the proper password is entered. Thank you!
        Then we probably need more information about what you're really trying to do.

        IMO -- using a homebrew, tk gui to collect a password and thereby authorize further actions seems highly ill-advised; un-necessarily complex; and subject to numerous possible-exploits.

        Come, let us reason together: Spirit of the Monastery
        Earth to amboxer21, use a dialog, its what its for