I have been looking for a good ruby GUI, and TK seems to be easiest
for me. I am quite new to programing in general, so bare with me if i’m
using the wrong “wordage” for things. I have been creating simple
programs, i.e basic skills math tests. But i have gotten bored/ annoyed
of cmd prompt. I was wondering does anyone know of any good tutorials
on how to program w/ TK. I have found some, but they are all very basic
and only go as far as explaining how to put buttons and text on the
window. I was trying to get my GUI more active like being able to
output and input information. Perhaps there is a better choice for a
Ruby GUI that someone might recommend that has more extensive easier
tutorials?
Thanks for the help :)!
and only go as far as explaining how to put buttons and text on the
window. I was trying to get my GUI more active like being able to
output and input information. Perhaps there is a better choice for a
Ruby GUI that someone might recommend that has more extensive easier
tutorials?
AFAIK there isn’t anything much more than introductory material
available in English on-line for Ruby/Tk. It’s really too bad because
Ruby/Tk provides a broad and deep range of GUI capabilities. After I
(rather quickly) reached the limitations of the available tutorials,
I turned to
This is not a tutorial but a repository of example code. I have
learned much from studying these examples. I recommend you take a
look at them. Also, if you have a question about a specific Ruby/Tk
element you can post it here. I’ll answer it if I can. But more to
the point, NAGAI Hidetoshi (the implementor/maintainer of Ruby/Tk)
often answers such question, and his answers are always illuminating.
I have learned a great deal from them.
Tk started off as the graphical tool kit for a scripting language
called Tcl/Tk. I have a strong feeling that once you grasp the basics
of Ruby/Tk you can get some good ideas about how to use it by searching
for stuff that describes what you want to do at http://wiki.tcl.tk (the Tcl/Tk) wiki.
You’ll need to translate the Tcl code that you see there to the
Ruby/Tk idioms but Tcl/Tk is pretty easy to read most of the time.