in reply to Simple Text Editor using the tk Wrapper
This part is a nice trick:
It keeps the TopLevel object around even if the user deletes it. I do something similar but the other way around, binding code to <Destroy> that undefs the variable holding the window object. I don't see recreating trivial windows as having much cost.$d->protocol(WM_DELETE_WINDOW =>[withdraw => $d]);
|
|---|