Installing Tcl/Tk on Windows

 On Windows, the easiest way to get Tcl/Tk onto your machine is to install the ActiveTcl distribution from ActiveState, which includes Tcl, Tk, plus a number of other extension libraries. Once installed, open a console window and type:

gem install tk

This will install the TK gem and will let you include it in your projects to start building GUI applications.

Sample code in Ruby.

require 'tk'

root = {title "Simple GUI window" } do
	text 'Hello world! Vote for world peace.'
	pack { padx 20; pady 20; side 'left' }