From: Hidetoshi NAGAI Date: 2004-12-24T12:57:32+09:00 Subject: Re: [Tk] program file name problem Hi, From: email55555 email55555 Subject: [Tk] program file name problem Date: Fri, 24 Dec 2004 03:49:39 +0900 Message-ID: <91b08b8a04122310492f537efc@mail.gmail.com> > A sample Tk program likes: > > require 'tk' > TkLabel.new(:text=>'Hello').pack > Tk.mainloop > > Save it to a file named as "tk" or "tk.rb" do not have any problem to run it. > However, save it to a file like "button.rb" or "scale.rb", > when run it, you will get trouble. I saved your script as "label.rb" and "button.rb". But, unfortunately, I couldn't re-generate your trouble. Of course, if the script is saved as "tk/label.rb" on the directory which has higher priority than the Ruby/Tk system directory, it will have to generate troubles. Please check your $LOAD_PATH and $LOADED_FEATURES. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)