I am looking for a way to embed Ruby/Tk apps in a web page.
Please tell me if this is possible and if so how.
Thanks
John
I am looking for a way to embed Ruby/Tk apps in a web page.
Please tell me if this is possible and if so how.
Thanks
John
Hi,
From: John Fletcher J.P.Fletcher@aston.ac.uk
Subject: embed Ruby/TK app in a web page
Date: Thu, 19 Jun 2003 20:42:48 +0900
Message-ID: 3EF19BFC.E55FF83A@aston.ac.uk
I am looking for a way to embed Ruby/Tk apps in a web page.
Hidetoshi Nagai (nagai@ai.kyutech.ac.jp)
Hidetoshi NAGAI wrote:
Hi,
From: John Fletcher J.P.Fletcher@aston.ac.uk
Subject: embed Ruby/TK app in a web page
Date: Thu, 19 Jun 2003 20:42:48 +0900
Message-ID: 3EF19BFC.E55FF83A@aston.ac.ukI am looking for a way to embed Ruby/Tk apps in a web page.
I committed patch for tcltklib.c.
Now, you can create a safe interpreter with safe-Tk on Ruby/Tk.
For exapmle,require ‘tk’
safeip = Tk::INTERP._eval(‘::safe::interpCreate’)
Tk::INTERP._eval(‘::safe::loadTk ’ + safeip)
Tk::INTERP._eval(safeip + ’ eval button .b -text SlaveIP -command exit’)
Tk::INTERP._eval(safeip + ’ eval pack .b’)
Tk.mainloopTo control slave-interpreters on tk.rb will be supported in the future.
Maybe it is a first step of Ruby/Tklet.Hidetoshi Nagai (nagai@ai.kyutech.ac.jp)
Hi
Will this be the version of Ruby/Tk with Ruby 1.8 ? If so I shall need to
update and convert my codes, as I am working with 1.6.7 at present.
John
Message-ID: 3EF6BB14.D2365067@aston.ac.uk
Will this be the version of Ruby/Tk with Ruby 1.8 ?
Yes. It is included Ruby1.8.0-preview3 which was released today.
If so I shall need to
update and convert my codes, as I am working with 1.6.7 at present.
Possibly, if comple ext/tcltklib and ext/tk of Ruby1.8 on Ruby1.6,
almost all part of Ruby/Tk will work fine except depending on
Ruby1.8 features. ( I don’t test it on Ruby1.6. )
Hidetoshi Nagai (nagai@ai.kyutech.ac.jp)