in reply to Make top level window unclosable Perl tk
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make top level window unclosable Perl tk
by amboxer21 (Sexton) on Jan 21, 2014 at 23:23 UTC | |
by choroba (Cardinal) on Jan 21, 2014 at 23:24 UTC | |
by amboxer21 (Sexton) on Jan 21, 2014 at 23:26 UTC | |
by ww (Archbishop) on Jan 21, 2014 at 23:52 UTC | |
by Anonymous Monk on Jan 21, 2014 at 23:50 UTC |