Sujet : Re: Closing a tclkit
De : heller (at) *nospam* deepsoft.com (Robert Heller)
Groupes : comp.lang.tclDate : 24. Jun 2024, 20:19:56
Autres entêtes
Organisation : Deepwoods Software
Message-ID : <xPecna6Pi5FBW-T7nZ2dnZfqnPGdnZ2d@giganews.com>
References : 1
User-Agent : TkNews 3.0 (1.2.18)
At Mon, 24 Jun 2024 10:49:16 -0700 Jacob <
JacobLambeth@clevelandgolf.com> wrote:
Hello,
I have a program that runs inside a tclkit (windows exe). Whenever I
close the program by clicking the "X", the tclkit still says its running
the task manager. Are there any tips on how to properly close a tclkit?
Right now, I simply have an exit command binded to the window.
bind . <Destroy> {
exit
}
Thanks,
Try adding:
wm protocol . WM_DELETE_WINDOW ::exit
Note: is "." the only toplevel? Is that in fact the toplevel you are
closing?
Have you done something like this?
wm withdraw .
toplevel .mytoplevelui
Jacob
-- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364Deepwoods Software -- Custom Software Serviceshttp://www.deepsoft.com/ -- Linux Administration Servicesheller@deepsoft.com -- Webhosting Services