BLT -- integrating into Ruby

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?

  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 /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”.

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! :slight_smile:

On 11/10/06, John W. Long [email protected] wrote:

Sorry, couldn’t resist! :slight_smile:
Lettuce not even go there (:

martin