This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
To: Phillip.Watts@nlynx.com Cc: balug-talk@balug.org Subject: Re: [Balug-talk] tk problem X-Zelazny-Quote: "Then the fit hit the shan." From: Chris Waters <xtifr@debian.org> Sender: balug-talk-admin@balug.org Date: Thu, 9 Oct 2003 12:36:26 -0700 On Thu, Oct 09, 2003 at 11:14:46AM -0500, Phillip.Watts@nlynx.com wrote: > Any tcl/tk or tkinter programmers? > I can't figure out what to do with the kill button(upper right x). You mean the one provided by the window manager? The one that's not always in the upper right, isn't always an 'x' (mine is a lightning bolt), and isn't always present? I wasted quite a bit of time trying to figure out what Tk widget you were talking about, until it occurred to me that you probably weren't talking about a Tk widget at all. > I can't find an event for it. That's because it's a feature of your window manager, not of Tk. > If I bind a function to <Destroy> it gets entered many times. Once for each child widget. The easiest way to deal with window manager events is to use the "wm" command, not the "bind" command. In this case, the "wm protocol" command: wm protocol . WM_DELETE_WINDOW { ... } ===