Re: Closing a tclkit

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Closing a tclkit
De : heller (at) *nospam* deepsoft.com (Robert Heller)
Groupes : comp.lang.tcl
Date : 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-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services
                                                                                                    

Date Sujet#  Auteur
24 Jun 24 * Closing a tclkit6Jacob
24 Jun 24 +- Re: Closing a tclkit1Jacob
24 Jun 24 +* Re: Closing a tclkit3Robert Heller
25 Jun 24 i`* Re: Closing a tclkit2Jacob
25 Jun 24 i `- Re: Closing a tclkit1Robert Heller
27 Jun 24 `- Re: Closing a tclkit1Andreas Leitgeb

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal