RubyTK Examples

I’ve browsed through some of the RubyTK examples provided, but in all
the tutorials they show how to create the widgets, but not the mechanics
of saving the fields and inputs to a file/database/xml etc…

Does anyone know of a decent tutorial that covers that sort of thing?
I’m relatively new to Ruby, but not a complete novice. Any help would be
appreciated, as I hit a block.

From: Michael S. [email protected]
Subject: RubyTK Examples
Date: Fri, 7 Oct 2011 06:56:51 +0900
Message-ID: [email protected]

I’ve browsed through some of the RubyTK examples provided, but in all
the tutorials they show how to create the widgets, but not the mechanics
of saving the fields and inputs to a file/database/xml etc…

Does anyone know of a decent tutorial that covers that sort of thing?
I’m relatively new to Ruby, but not a complete novice. Any help would be
appreciated, as I hit a block.

Did you see examples and WidgetDemo which included in Ruby’s source
archive (at ext/tk/sample/). Those don’t match for your request, but
may be useful for you.

WidgetDemo can show the source of each sub-demo script on the text
widget frame. On that, you can modify the source and re-run the
modified script. WidgetDemo will help you to study Ruby/Tk by trial
and errors.

The examples and WidgetDemo may not be included in a binary package
of Ruby. If you can’t find them, please download Ruby’s source from
Ruby’s official site.