From: Mike Jones Date: 2004-12-14T20:42:28+09:00 Subject: Re: clean Tk exit R. Mark Volkmann wrote: > Quoting Bill Atkins : > > >>Are you using any other libraries aside from Tk? > > > No, just Tk. > > The following simple snippet of code demonstrates the problem. I see the > problem under Windows XP, but not under Windows 2000. On both platforms I'm > using ruby 1.8.2 (2004-11-06) from the Windows one-click installer. > > require 'tk' > root = TkRoot.new > button = TkButton.new(root) > button.command lambda {Tk.exit} > button.text 'Exit' > button.pack > Tk.mainloop > I just tried the following with the latest one click installer for Ruby. I am running Windows XP SP2 and this code run from irb worked fine.