From: dejaspam@... (Bill Atkins) Date: 2004-05-15T05:18:52+09:00 Subject: Re: Using TkTree - Desperately need help I tried that but I get these errors when I run tktree.rb C:/Program Files/Arachno Ruby IDE/ruby/lib/ruby/1.8/tk.rb:1036:in `tk_call': invalid command name `::tktree::treecreate' (NameError) from tktree.rb:21:in `create_self' from C:/Program Files/Arachno Ruby IDE/ruby/lib/ruby/1.8/tk.rb:3985:in `initialize' from tktree.rb:60:in `new' from tktree.rb:60 Hidetoshi NAGAI wrote in message news:<20040507.115427.41647208.nagai@ai.kyutech.ac.jp>... > Hi, > > From: Hidetoshi NAGAI > Subject: Re: Using TkTree - Desperately need help > Date: Thu, 6 May 2004 13:41:17 +0900 > Message-ID: <20040506.134115.41644100.nagai@ai.kyutech.ac.jp> > > To install, > > step1: make TkTree work on Tcl/Tk > > (1) save Tcl source script (e.g. 'tktree.tcl'). > > (2) copy the script file to Tcl/Tk library directory. > > (3) start wish or tclsh, and do 'auto_mkindex '. > > (4) restart wish, and do the test script at . > > > > step2: try on Ruby/Tk > > (1) save the following library script as 'tktree.rb'. > > (2) /ruby tktree.rb > > (3) move tktree.rb to your ruby library path. > > (4) 'require "tktree"' on your script. > > I'd forgotten other solutions. > The followings don't request you to work on Tcl/Tk. > ======================================================= > (Ans.1) > (1) call Tk.load_tclscript() > (2) require "tktree" (or some wrapper library) > > (Ans.2) > (1) store Tcl script as a string, > and call Tk.ip_eval() > > ex1: Tk.ip_eval(IO.read()) > > ex2: Tk.ip_eval(IO.read(< ... Tcl script text ... > EOT > > (2) require "tktree" (or some wrapper library) > ======================================================= > > # If you must load Tcl/Tk's dynamic libraries, > # please use 'Tk.load_tcllibrary()'.