# New modern tutorial for Ruby Tk GUI programming

**URL:** <https://rubytalk.org/t/new-modern-tutorial-for-ruby-tk-gui-programming/46987>\
**Category:** ruby-talk\
**Created:** [7 June 2008 22:48 UTC](https://rubytalk.org/t/new-modern-tutorial-for-ruby-tk-gui-programming/46987 "2008-06-07T22:48:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Roseman](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/mark_roseman/32/2232_2.png) [@Mark\_Roseman](https://rubytalk.org/u/Mark_Roseman)\
**Post date:** [7 June 2008 22:48 UTC](https://rubytalk.org/t/new-modern-tutorial-for-ruby-tk-gui-programming/46987/1 "2008-06-07T22:48:46Z")

</div>

Current, up-to-date tutorial documentation for Ruby Tk is very sparse,  
especially for newer features like the themed widgets. I've been  
working on a website that I hope helps fill some of those gaps. You can  
find it here:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://www.tkdocs.com](http://www.tkdocs.com)

Please check it out, and in particular the tutorial, which covers the  
more modern "best practices" with using Tk. It gives equal coverage to  
using Tk both from Tcl and from Ruby (you can turn either off of  
course), so you don't have to try to translate from Tcl-oriented  
documentation to figure out how to do things in Ruby.

I hope some people here will find this helpful. Any corrections,  
contributions or comments definitely appreciated!

Thanks  
Mark

---

<div class="post-metadata">

**Author:** ![RaL](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RaL](https://rubytalk.org/u/RaL)\
**Post date:** [7 June 2008 23:34 UTC](https://rubytalk.org/t/new-modern-tutorial-for-ruby-tk-gui-programming/46987/2 "2008-06-07T23:34:38Z")

</div>

Great, thank you very much!

> **···**
>
> 2008/6/8, Mark Roseman \<mark@markroseman.com\>:
> 
> > Current, up-to-date tutorial documentation for Ruby Tk is very sparse,  
> > especially for newer features like the themed widgets. I've been  
> > working on a website that I hope helps fill some of those gaps. You can  
> > find it here:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://www.tkdocs.com](http://www.tkdocs.com)
> > 
> > Please check it out, and in particular the tutorial, which covers the  
> > more modern "best practices" with using Tk. It gives equal coverage to  
> > using Tk both from Tcl and from Ruby (you can turn either off of  
> > course), so you don't have to try to translate from Tcl-oriented  
> > documentation to figure out how to do things in Ruby.
> > 
> > I hope some people here will find this helpful. Any corrections,  
> > contributions or comments definitely appreciated!
> > 
> > Thanks
> > 
> > Mark

---

<div class="post-metadata">

**Author:** ![Len\_Lawrence](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@Len\_Lawrence](https://rubytalk.org/u/Len_Lawrence)\
**Post date:** [9 June 2008 06:58 UTC](https://rubytalk.org/t/new-modern-tutorial-for-ruby-tk-gui-programming/46987/3 "2008-06-09T06:58:36Z")

</div>

Yes, a very big thank you Mark for this very timely exposition. I have  
just recently started using Ruby after 16 years of Tcl/Tk and am finding  
your tutorial and references invaluable. The documentation has given me  
a handle on a problem which has dogged me since Mandriva switched from  
Tk8.5.0 to Tk8.5.1. Tcl/Tk with legacy code works flawlessly but ruby-tk  
now breaks down. I used your examples to demonstrate that the ttk themed  
widgets can be used without a problem but legacy widgets cause an  
immediate core dump, in Linux at least. So, is there anything extra that  
needs to be done in ruby scripts to enable support for the old style  
widgets?

Len

> **···**
>
> On Sat, 07 Jun 2008 18:46:44 -0400, Mark Roseman wrote:
> 
> > Current, up-to-date tutorial documentation for Ruby Tk is very sparse,  
> > especially for newer features like the themed widgets. I've been  
> > working on a website that I hope helps fill some of those gaps. You can  
> > find it here:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://www.tkdocs.com](http://www.tkdocs.com)
> > 
> > Please check it out, and in particular the tutorial, which covers the  
> > more modern "best practices" with using Tk. It gives equal coverage to  
> > using Tk both from Tcl and from Ruby (you can turn either off of  
> > course), so you don't have to try to translate from Tcl-oriented  
> > documentation to figure out how to do things in Ruby.
> > 
> > I hope some people here will find this helpful. Any corrections,  
> > contributions or comments definitely appreciated!
> > 
> > Thanks  
> > Mark

---

<div class="post-metadata">

**Author:** ![Len\_Lawrence](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@Len\_Lawrence](https://rubytalk.org/u/Len_Lawrence)\
**Post date:** [10 June 2008 17:14 UTC](https://rubytalk.org/t/new-modern-tutorial-for-ruby-tk-gui-programming/46987/4 "2008-06-10T17:14:57Z")

</div>

As posted in another thread, problem solved by installing ruby1.8.7.

Len

> **···**
>
> On Mon, 09 Jun 2008 06:58:55 +0000, Len Lawrence wrote:
> 
> > On Sat, 07 Jun 2008 18:46:44 -0400, Mark Roseman wrote:
> > 
> > > Current, up-to-date tutorial documentation for Ruby Tk is very sparse,  
> > > especially for newer features like the themed widgets. I've been  
> > > working on a website that I hope helps fill some of those gaps. You  
> > > can find it here:
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://www.tkdocs.com](http://www.tkdocs.com)
> > > 
> > > Please check it out, and in particular the tutorial, which covers the  
> > > more modern "best practices" with using Tk. It gives equal coverage to  
> > > using Tk both from Tcl and from Ruby (you can turn either off of  
> > > course), so you don't have to try to translate from Tcl-oriented  
> > > documentation to figure out how to do things in Ruby.
> > > 
> > > I hope some people here will find this helpful. Any corrections,  
> > > contributions or comments definitely appreciated!
> > > 
> > > Thanks  
> > > Mark
> > 
> > Yes, a very big thank you Mark for this very timely exposition. I have  
> > just recently started using Ruby after 16 years of Tcl/Tk and am finding  
> > your tutorial and references invaluable. The documentation has given me  
> > a handle on a problem which has dogged me since Mandriva switched from  
> > Tk8.5.0 to Tk8.5.1. Tcl/Tk with legacy code works flawlessly but  
> > ruby-tk now breaks down. I used your examples to demonstrate that the  
> > ttk themed widgets can be used without a problem but legacy widgets  
> > cause an immediate core dump, in Linux at least. So, is there anything  
> > extra that needs to be done in ruby scripts to enable support for the  
> > old style widgets?
> > 
> > Len
