Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

BioGeek's scratchpad

by BioGeek (Hermit)
on Jul 28, 2004 at 09:31 UTC ( #377975=scratchpad: print w/ replies, xml ) Need Help??

#!/usr/bin/perl -w + use Test::Simple tests => 2; + use Tk; + my $mw = MainWindow->new; # create an object ok( defined $mw ); # check that we got something ok( $mw->isa('Tk') ); # and it's the right class + $mw->Label(-text => 'Hello, world!')->pack; is($mw->text, 'Hello World!', text() ); + $mw->Button( -text => 'Quit', -command => sub { exit }, )->pack; is($mw->text, 'Quit', text() ); is($mw->command, 'sub { exit }', text() );




Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-02 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls