Perl Basics
Introduction to Perl
FAQ's
CGI
Regular Expressions

PC Overview
Cool Stuff
My Modules
Success Stories
Links
Perl in the News
Logos
Perl @ msn
Perl Chat

PC Internals
About
Contact
Guest Book
Handy Logos
What's new

Perl TK

GUI development in Perl
See also oreilly
P-friendly

[ home ] - [ search ] - [ sitemap ]

See also [ perl/GUI-Programming/index.html ]

  1. http://w4.lns.cornell.edu/~pvhp/ptk/doc/
  2. Perl/Tk FAQs

A simple "Hello World!" widget script could be written as follows:

    #!/usr/bin/perl -w

    use strict;
    use Tk;

    my $main = new MainWindow;
    $main->Label(-text => 'Hello World!'
                 )->pack;
    $main->Button(-text => 'Quit',
                  -command => sub{exit}
                  )->pack;
    MainLoop;
home - feedback - search - web jobs
© 1998-2004 retoh :)