Help for this page

Select Code to Download


  1. or download this
    my $mw = MainWindow->new(-title => 'Mouse Gesture Test');
    $mw->geometry('1200x900+50+50');
    
  2. or download this
    my $w_text = $mw->Scrolled('Text',
        -scrollbars => 'osoe',
        -wrap => 'none',
    )->pack(-fill => 'both', -expand => 1);
    
  3. or download this
    $w_text->bind('<Motion>', [\&mouse_gesture, Ev('x'), Ev('y')]);
    
  4. or download this
    $mw->Button(-text => q{Exit}, -command => sub { exit })->pack();
    
  5. or download this
    $w->xviewScroll($xpos < $x ? 1 : -1, q{units});
    ...
    $w->yviewScroll($ypos < $y ? 1 : -1, q{units});
    
  6. or download this
    $w->insert('end',
        "This is line $_. It's really long ... $long_string\n"
    );