From: Hidetoshi NAGAI Date: 2003-09-05T12:26:27+09:00 Subject: Re: using tktable under ruby Hi, From: Ferenc Engard Subject: using tktable under ruby Date: Fri, 5 Sep 2003 08:08:09 +0900 Message-ID: <3F57C4FA.DA14AAAC@engard.hu> > How should I define the command parameter of tktable in ruby to get use > of it? I need something like "... -command [list fnname %r %c] ...", and > of course the callback is written in ruby. Unfortunately, it seems that > the functions needed for to not to write from scratch are private in > TkComm/TkCore, e.g. ruby2tcl, and maybe install_cmd. Or am I missing > something? Unfortunately, current Ruby/Tk doesn't have a general framework for callbacks with parameters. But one of the sample is included in the definition of TkEntry on Ruby 1.8.0. Please refer the implement of 'validatecommand' option of the entry widget. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)