From: nagai@... Date: 2002-01-21T17:01:26+09:00 Subject: Re: Tk and cygwin Hi, From: MENON Jean-Francois Subject: Tk and cygwin Date: Wed, 16 Jan 2002 18:23:00 +0900 Message-ID: <3C454664.F1A77B73@bigfoot.com> > PS: > tk question: can I keep user from closing a window with the 'x' button ? > ( the bind callback is called *after* the window is closed ) Please try TkRoot/TkToplevel#protocol method (See Wm module). e.g -------------------------------- require 'tk' TkRoot.new.protocol('WM_DELETE_WINDOW', proc{p "Ouch!!\n"}) Tk.mainloop -------------------------------- -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)