in reply to Perl Tk ButtonPress Automation

#!/usr/bin/perl # http://perlmonks.org/?node_id=1141496 use Tk; use strict; use warnings; $| = 1; my $mw = MainWindow->new; my $continue = $mw->Button(-text => 'Continue', -command => sub {print "continue was pressed\n" ; $mw->destroy }, )->pack; my $exit = $mw->Button(-text => 'Exit', -command => sub {print "exit was pressed\n" ; $mw->destroy }, )->pack; $mw->after(3_000, sub { $continue->invoke } ); # automation :) MainLoop;

Replies are listed 'Best First'.
Re^2: Perl Tk ButtonPress Automation
by JDogRob (Initiate) on Sep 13, 2015 at 22:22 UTC

    Anonymous - this is exactly what I was looking for.

    I appreciate the help.

    Thanks,

    Jason