#!/usr/bin/perl -w use strict; use warnings; use Tk; my $mw = MainWindow->new; my $frame = $mw->Frame->pack(-side => 'top', -fill => 'x'); my $box1 = $mw->Scrolled("Listbox", -scrollbars => 'osoe', -height => 10, -selectmode => "multiple")->pack(-fill => 'x'); my $box2 = $mw->Scrolled("Listbox", -scrollbars => 'osoe', -height => 10, -selectmode => "multiple")->pack(-fill => 'x'); #test data for my $x (1..100) { $box1->insert('end', $x); $box2->insert('end', $x); } MainLoop;