From: nagai@... Date: 2002-04-30T14:06:45+09:00 Subject: Re: TCL interpreter in Ruby? Hi, From: nagai@ai.kyutech.ac.jp Subject: Re: TCL interpreter in Ruby? Date: Mon, 29 Apr 2002 10:46:54 +0900 Message-ID: <20020429104649U.nagai@ai.kyutech.ac.jp> > The following is a sample to show tha way of reading > the user configure scripts. > --------------------------------------------------- > require 'tk' > def Tk.load_tcl_script(file) > Tk.tk_call('eval', open(file){|f| f.read}) > end > --------------------------------------------------- Sorry. That was not so good script. The following is the better and more (most?) simple way. --------------------------------------------------- require 'tk' def Tk.load_tcl_script(file) tk_call('source', file) end --------------------------------------------------- Is it enough to solve your problem? -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)