# Ruby/Tk version?

**URL:** <https://rubytalk.org/t/ruby-tk-version/52033>\
**Category:** ruby-talk\
**Created:** [27 February 2009 16:54 UTC](https://rubytalk.org/t/ruby-tk-version/52033 "2009-02-27T16:54:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Virasoro](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@Diego\_Virasoro](https://rubytalk.org/u/Diego_Virasoro)\
**Post date:** [27 February 2009 16:54 UTC](https://rubytalk.org/t/ruby-tk-version/52033/1 "2009-02-27T16:54:06Z")

</div>

Hello,  
what version of Tk does Ruby 1.9.1 uses? And if they are not uptodate,  
any plan to bring it to the latest version?

Thank you

Diego

---

<div class="post-metadata">

**Author:** ![Hidetoshi\_NAGAI](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@Hidetoshi\_NAGAI](https://rubytalk.org/u/Hidetoshi_NAGAI)\
**Post date:** [6 March 2009 01:50 UTC](https://rubytalk.org/t/ruby-tk-version/52033/2 "2009-03-06T01:50:24Z")

</div>

Message-ID: \<f4dc9e4c-fd3d-4aca-aed5-c3e54bcf355a@l39g2000yqn.googlegroups.com\>

> what version of Tk does Ruby 1.9.1 uses? And if they are not uptodate,  
> any plan to bring it to the latest version?

You'll be able to use any version of Tcl/Tk. If not, it is a bug.  
However, you have to use a tcltklib.so which compiled for your Tcl/Tk  
libraries.

Ruby/Tk uses YOUR Tcl/Tk libs on YOUR environment.  
A tcltklib.so is compatible among the minor versions of Tcl/Tk.  
When you used Tcl/Tk8.4.x with Ruby/Tk and update Tcl/Tk to 8.4.y,  
your Ruby/Tk will work with Tcl/Tk8.4.y.  
If your tcltklib.so is compiled with "--enable-tcltk-stubs"  
(see \<ruby-src\>/ext/tk/README.tcltklib) for Tcl/Tk8.4.x,  
it may work with Tcl/Tk8.5.x or 8.6.x.

# I'm sorry, but I've not checked Tcl/Tk8.6. I think that it will work.  
# But current Ruby/Tk doesn't have wrapper methods for some of new  
# features of Tcl/Tk8.6.  
# If you want to use such features now, please use Tk.tk\_call().

That is the reason of why Ruby/Tk is distributed without Tcl/Tk libs.  
You don't need to install a different version of Tcl/Tk for Ruby/Tk only.  
You'll be able to use the latest version of Tcl/Tk without waiting  
a new Ruby/Tk release.  
And you can use Tcl/Tk extensions installed for your Tcl/Tk on Ruby/Tk.  
Even if there is no wrapper method for Tcl/Tk functions which you want  
to use, you can call the functions with Tk.tk\_call() or Tk.ip\_eval().

> **···**
>
> From: Diego Virasoro \<Diego.Virasoro@gmail.com\>  
> Subject: Ruby/Tk version?  
> Date: Sat, 28 Feb 2009 01:54:06 +0900  
> --  
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

---

<div class="post-metadata">

**Author:** ![mdiam](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mdiam](https://rubytalk.org/u/mdiam)\
**Post date:** [6 March 2009 20:48 UTC](https://rubytalk.org/t/ruby-tk-version/52033/3 "2009-03-06T20:48:27Z")

</div>

So is there any argument for not always using  
"--enable-tcltk-stubs" ?

-- Maurice

> **···**
>
> On Mar 6, 2:50 am, Hidetoshi NAGAI \<na...@ai.kyutech.ac.jp\> wrote:
> 
> > If your tcltklib.so is compiled with "--enable-tcltk-stubs"  
> > (see \<ruby-src\>/ext/tk/README.tcltklib) for Tcl/Tk8.4.x,  
> > it may work with Tcl/Tk8.5.x or 8.6.x.

---

<div class="post-metadata">

**Author:** ![Hidetoshi\_NAGAI](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@Hidetoshi\_NAGAI](https://rubytalk.org/u/Hidetoshi_NAGAI)\
**Post date:** [6 March 2009 23:23 UTC](https://rubytalk.org/t/ruby-tk-version/52033/4 "2009-03-06T23:23:51Z")

</div>

Message-ID: \<c3eafd18-4961-4ee4-bc2a-84e072cfb633@l16g2000yqo.googlegroups.com\>

> \> If your tcltklib.so is compiled with "--enable-tcltk-stubs"  
> \> (see \<ruby-src\>/ext/tk/README.tcltklib) for Tcl/Tk8.4.x,  
> \> it may work with Tcl/Tk8.5.x or 8.6.x.  
> So is there any argument for not always using  
> "--enable-tcltk-stubs" ?

Histrical reason. 😉 A "stub" system is supported Tcl8.1 or later.  
And, I think, "disable-stubs" is a little safer than "enable-stubs".

> **···**
>
> From: mdiam \<Maurice.Diamantini@gmail.com\>  
> Subject: Re: Ruby/Tk version?  
> Date: Sat, 7 Mar 2009 05:48:27 +0900  
> --  
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
