RAA - tcltk-ext

tcltk-ext / 0.52

Short description: wrapper library generator for Tcl/Tk ext package
Category: Library/Graphics
Status: alpha, but usable
Created: 2001-07-04 00:43:13 GMT
Last update: 2004-08-28 18:12:58 GMT
Owner: Hidetoshi NAGAI (Projects of this owner)
Homepage: not available
Download: http://www.dumbo.ai.kyutech.ac.jp/~nagai/tcltk-ext052.tar.gz
License: Ruby's
Dependency:
None
Description:

This is a library to use Tcl/Tk Ext-Package (Tix, BLT, etc.) on Ruby/Tk.
This library consists of 'class/module template generate tool' and
'library files to wrap tcltklib.o/tcltk.rb/tk.rb'.
BUT very sorry.
Documents and verbose messages of the tool are written in Japanese.
The tool generate 'class/module definition' based on the information of
Tcl/Tk Ext-Package. (e.g. Tix.def => Tix.inf and Tix.rb)
--- Tix.def sample --------
# library information that must be loaded before the target Tcl/Tk library
$pre_load_lib = [ nil ]
# target library information
$ext_lib_info = [
['Tix', 'libtix4.1.8.0.so', ['/usr/local/lib/tix4.1']],
nil
]
---------------------------
--- sample script using Tix.rb ------
require 'Tix'
TixDirList.new(nil).pack
TixFileEntry.new(nil, 'label'=>'FILE').pack
TkButton.new(nil, 'text'=>'quit', 'command'=>proc{exit}).pack('fill'=>'x')
Tk.mainloop
-------------------------------------
Of cource, generated definitions are NOT perfect.
But probably, many of them don't need editing.
If you want to use low level interface (such as tcltk.rb),
plase replace "require 'tcltk'" to "require 'tcltkext'".
Then you can use a new method to setup Tcl/Tk Ext-Package.

Versions: [0.52 (2004-08-28)] [0.1 (2004-06-07)] [0.51 (-)]

Edit this project (for project owner)

back to RAA top