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