Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w             
    use Tk;
    ...
        $plus->pack;       
    
    MainLoop;
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
        $rect_id and $c->delete($rect_id); # Delete any old rectangle firs
    +t
        $rect_id = $c->createRectangle($x0, $y0, $x, $y, -outline => 'yell
    +ow', -dash => '.   ');
    }