$toplevel->protocol('WM_DELETE_WINDOW', sub{});
to disable the close button.
Update: sub{} used instead of q() after trying myself, even if the documentation states otherwise.
In reply to Re: Make top level window unclosable Perl tk
by choroba
in thread Make top level window unclosable Perl tk
by amboxer21
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |