Help for this page

Select Code to Download


  1. or download this
        $mw->Button(-text => 'Quit', -command => sub { print 'Bye!'; exit;
    + })->pack;
    
  2. or download this
        $mw->bind('<KeyRelease-A>' => \&print_something);
    
  3. or download this
    #!/usr/bin/perl
    use warnings;
    ...
      my ($canv, $x, $y) = @_;
      print "(x,y) = ", $canv->canvasx($x), ", ", $canv->canvasy($y), "\n"
    +;
    }
    
  4. or download this
    use Tk::WidgetDump;
    use Tk::ObjScanner;
    ...
    
    Tk::ObjScanner::scan_object($the_widget_or_window_to_inspect);