Hi,
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?
Thx,
Pat
On Nov 9, 2006, at 1:52 PM, Patrick L. wrote:
Hi,
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?
require ‘tk’
require ‘tkextlib/blt’
Also, check out:
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ext/tk/sample/
tkextlib/blt/
Regards, Morton
From: Patrick L. [email protected]
Subject: BLT – integrating into Ruby
Date: Fri, 10 Nov 2006 03:52:13 +0900
Message-ID: [email protected]
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?
-
Install BLT for your Tcl/Tk.
When your Tcl/Tk and BLT libraries are installed at /usr/lib and
your Ruby libraries are installed at /usr/local/lib, you may have
to make a symbolic link ‘/usr/local/lib/blt’ → ‘/usr/lib/blt’
because of Tcl/Tk’s library search path. -
Please try “ruby /tkextlib/pkg_checker.rb”.
If its output includes “Ready : blt.rb : …”, your Ruby/Tk is
ready to use BLT.
When includes “LACK : blt.rb : …”, please check Tcl/Tk’s
library path on your Ruby/Tk.
If you need some setup operation (e.g. add a library path),
you can add the operation on “tkextlib/blt/setup.rb” or
“tkextlib/setup.rb” which are loaded before trying to load BLT
library. -
“require ‘tkextlib/blt’” in your script.
Please get the latest version of tkextlib/blt/* from CVS.
On the versions before 2006/11/07, tkextlib/blt/table.rb doesn’t work.
If you see bugs or lack of support, please report it to me.
I need help to find and fix such defects.
A latest example of improvement based on a user’s report is
“tkextlib/tile/treeview.rb”.
Patrick L. wrote:
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?
require “bacon/chunky”
Sorry, couldn’t resist!
On 11/10/06, John W. Long [email protected] wrote:
Sorry, couldn’t resist!
Lettuce not even go there (:
martin