=head1 NAME Tkx::Tutorial - How to use Tkx =head1 DESCRIPTION I is a toolkit that allows you to create applications with graphical interfaces for Windows, Mac OS X and X11. The Tk toolkit is native to the I programming language, but its ease of use and cross-platform availability has made it the GUI toolkit of choice for many other dynamic languages as well. I is a Perl module that makes the Tk toolkit available to Perl programs. By loading the Tkx module Perl programs can create windows and fill them with text, images, buttons and other controls that make up the user interface of the application. =head2 Hello World Let's start with the mandatory exercise of creating an application that greats the world. Here we make the application window contain a single button which will shut down the application if clicked. The code to make this happen is: use Tkx; Tkx::button(".b", -text => "Hello, world", -command => sub { Tkx::destroy("."); }, ); Tkx::pack(".b"); Tkx::MainLoop() Save this to a file called F and then run C to start up the application. A window with the text "Hello, world" should appear on your screen. After the Tkx module has been loaded by the C statement the application will show an empty window called ".". We create a I