Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk
backend???
···
--
Posted via http://www.ruby-forum.com/.
Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk
backend???
--
Posted via http://www.ruby-forum.com/.
Quoting Ishaan B. (lists@ruby-forum.com):
Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk
backend???
Tcl/TK support is included in Ruby from the beginning. I never used it
personally, but if you google around you will find several
resources. For example, a multi-language tutorial:
Carlo
Subject: Is it possible to run Tcl from Ruby?
Date: mar 12 mar 13 06:20:05 +0900
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)
Thanks Carlo but I wanted to run Tcl scripts without the usage of Tk.
Am planning to store and retreive Tcl data from Ruby database
--
Posted via http://www.ruby-forum.com/.
Quoting Ishaan B. (lists@ruby-forum.com):
Thanks Carlo but I wanted to run Tcl scripts without the usage of Tk.
Am planning to store and retreive Tcl data from Ruby database
Umm... Would opening a pipe with tclsh solve your problem? See
ri IO::pipe
Carlo
Subject: Re: Is it possible to run Tcl from Ruby?
Date: mar 12 mar 13 06:32:48 +0900
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)
Message-ID: <05a930d2fcb845d239c35e2d5d92ed72@ruby-forum.com>
Thanks Carlo but I wanted to run Tcl scripts without the usage of Tk.
Am planning to store and retreive Tcl data from Ruby database
Please use tcltklib and tkutil directly.
For example,
From: "Ishaan B." <lists@ruby-forum.com>
Subject: Re: Is it possible to run Tcl from Ruby?
Date: Tue, 12 Mar 2013 18:32:48 +0900
------------------------------------
require 'tcltklib'
require 'tkutil'
interp = TclTkIp.new(nil, nil)
ret = interp._eval("source hoge.tcl")
ret = interp._invoke("source", "hoge.tcl")
ret = interp._invoke('lsort', TkUtil._get_eval_string([3,1,2]))
p interp._split_tklist(ret)
------------------------------------
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
Department of Artificial Intelligence, Kyushu Institute of Technology