tix8.1 wrapper for ruby?

F

Ferenc Engard

Hello,

I was looking for tk extension wrappers, and found the tcltk-ext package
in RAA. I was really happy, downloaded it, and blindly tried it out:

--------------------------------------------------------------
fery@domesticus:~/transfer/tcltk-ext051$ cat tix81.def
$pre_load_lib = [
nil
]

$ext_lib_info = [
['Tix', '/usr/lib/libtix8.1.8.4.so.1', ['/usr/lib/tix8.1']],
nil
]
fery@domesticus:~/transfer/tcltk-ext051$ ./mk_tkextlib.rb -p tix81
./mk_tkextlib.rb:2164: warning: don't put space before argument
parentheses
./mk_tkextlib.rb:2169: warning: don't put space before argument
parentheses
./mk_tkextlib.rb:2449: warning: don't put space before argument
parentheses
./tcltkextlib.rb:54: warning: don't put space before argument
parentheses
./tcltkextlib.rb:219: warning: don't put space before argument
parentheses
#############################################
(Ãí) °Ê²¼¤ÇȯÀ¸¤¹¤ë Tcl/Tk ¾å¤Î¥¨¥é¡¼¤Ï
¸¡ºº²áÄø¤ÎÅÔ¹ç¾åÀ¸¤¸¤ë¤â¤Î¤Ç¤¢¤ë¤Î¤Ç¡¤
Ä̾ï¤Ï̵»ë¤·¤Æ¤«¤Þ¤ï¤Ê¤¤
#############################################
Error:
a1

Error:
a1
value for "a2" missing
while executing
"tixClass a1 a2"

--------------------------------------

So, what can I do?

Thanks:
Ferenc

PS: Running mk_tkextlib.rb I have realized that the tcltklib+exception
problem
(http://groups.google.com/[email protected])
still exists...

PS2: The pre-generated .rb lib are more-or-less usable...
 
H

Hidetoshi NAGAI

Hi,

From: Ferenc Engard <[email protected]>
Subject: tix8.1 wrapper for ruby?
Date: Fri, 14 Nov 2003 08:37:18 +0900
Message-ID: said:
parentheses
#############################################
(Ãí) °Ê²¼¤ÇȯÀ¸¤¹¤ë Tcl/Tk ¾å¤Î¥¨¥é¡¼¤Ï
¸¡ºº²áÄø¤ÎÅÔ¹ç¾åÀ¸¤¸¤ë¤â¤Î¤Ç¤¢¤ë¤Î¤Ç¡¤
Ä̾ï¤Ï̵»ë¤·¤Æ¤«¤Þ¤ï¤Ê¤¤
#############################################
Error:
a1

Error:
a1
value for "a2" missing
while executing
"tixClass a1 a2"

If you get Tix.rb and Tix.inf, Please ignore those error messages.
Those are Tcl/Tk's responses for test commands to explore the arguments
and the functions.

If get none... Sorry. The library is not tested on ruby 1.8.x.
Please wait for a new library which supports ruby 1.8.x.
Or create new Tix.rb for Tix8.1 based on the sample Tix-for-TkPackage.rb
which generated for Tix4.1.

Probably, on your Tcl/Tk, "package require Tix" command is working.
If it is true, please edit head lines of Tix.rb from
---------------------------
require 'tkext'

module Tix
extend Tix

# load Tck/Tk ext-package library
load 'Tix.inf'
EXTLIB_INFO.each{|lib| Tk.setup_libs(lib) if lib} if EXTLIB_INFO
---------------------------
to
---------------------------
#require 'tkext'
require 'tk'

module Tix
extend Tix

# load Tck/Tk ext-package library
#load 'Tix.inf'
#EXTLIB_INFO.each{|lib| Tk.setup_libs(lib) if lib} if EXTLIB_INFO
TkPackage.require('Tix')
---------------------------

Now, you'll be able to use Tix library by 'require "Tix.rb"'.
The generated Tix.rb is a result of automatic estimation.
So, it is NOT perfect. It's only a template for better definitions.
PS: Running mk_tkextlib.rb I have realized that the tcltklib+exception
problem
(http://groups.google.com/[email protected])
still exists...

Please try the newest CVS version with the '--with-pthread-ext' configure
option.
 
F

Ferenc Engard

Hidetoshi said:
If get none... Sorry. The library is not tested on ruby 1.8.x.
Please wait for a new library which supports ruby 1.8.x.

I get none. But I am happy to hear that this project is not dead... :)
Or create new Tix.rb for Tix8.1 based on the sample Tix-for-TkPackage.rb
which generated for Tix4.1. [...]
Now, you'll be able to use Tix library by 'require "Tix.rb"'.
The generated Tix.rb is a result of automatic estimation.
So, it is NOT perfect. It's only a template for better definitions.

This is what I did. I use TixCombobox from it, and it works for me.
Please try the newest CVS version with the '--with-pthread-ext' configure
option.

Thanks, but I am too lazy, I still waiting for the debianized version...
;-)

Bye:
Ferenc
 

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
473,780
Messages
2,569,611
Members
45,282
Latest member
RoseannaBa

Latest Threads

Top