Ruby Language Getting started with Ruby Language Hello World with tk

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


Tk is the standard graphical user interface (GUI) for Ruby. It provides a cross-platform GUI for Ruby programs.

Example code:

require "tk"{ title "Hello World!" }

The result:

Result of Hello World with tk

Step by Step explanation:

require "tk"

Load the tk package.{ title "Hello World!" }

Define a widget with the title Hello World


Start the main loop and display the widget.

Got any Ruby Language Question?