From: Patrick Lynch <
[email protected]>
Subject: BLT -- integrating into Ruby
Date: Fri, 10 Nov 2006 03:52:13 +0900
Message-ID: said:
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?
1. 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.
2. Please try "ruby <ruby-lib-path>/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.
3. "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".