BLT -- integrating into Ruby

P

Patrick Lynch

Hi,
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?
Thx,
Pat
 
H

Hidetoshi NAGAI

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".
 
J

John W. Long

Patrick said:
BLT is a very nice graphics package. Does anyone know how to integrate
it into Ruby?

<quip>

require "bacon/chunky"

</quip>

Sorry, couldn't resist! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,218
Messages
2,571,124
Members
47,728
Latest member
SusanGsc94

Latest Threads

Top