how to create a dialog that is hidden/shown rather than created/destroy
From Mark Summerfield@21:1/5 to All on Fri Jun 21 09:55:13 2024
Below is a tiny program.
The "About" form is created and destroyed. So you can click About then
close the About form, then repeat as often as you like.
The "Options" form is supposed to be shown and hidden. But once you click
it and then close it, the entire app is blocked. So clearly I'm doing
something wrong.
Here's the code using Tcl/Tk 9.0b2 on Linux.
#!/usr/bin/env wish9
if {[info exists env(TK_SCALING)]} { tk scaling $env(TK_SCALING) }