Windows XP で TK を使用する。
my $mw = new MainWindow;
my $text1 = $mw->Text(-width=>20, -height=>10)
->place(-x=>350, -y=>460);
my $showlabel = $mw->Label(-text => "nothing selected")
->place(-x=>50, -y=>120);
$text1->configure( -command => sub {
$showlabel->configure(-text => "You selected:\t" .
$text1->getSelected()
)
}
);
コードを実行した後、$showlabel
テキストを強調表示するたびに更新されません。誰でも助けてもらえますか?