in reply to Re^2: how to prevent more than 1 tk Toplevel windows from opening
in thread how to prevent more than 1 tk Toplevel windows from opening
if ( !Exists( $tl ) ) { $tl = $mw->Toplevel(); $tl->protocol('WM_DELETE_WINDOW' => sub { print "do nothing here\n"; }); ......
|
|---|