in reply to Is the problem JComboBox, Perl/Tk or (probably) me!?
I think you want
$mw->Button( -text => 'func', -command => sub { test($jcb->getSelectedValue($jcb->getSelectedInde +x())) } , )->pack; $mw->Button( -text => 'embed', -command => sub { my $p1 = $jcb->getSelectedIndex(); printf("e: \$p +1 = >>$p1<<\n"); } )->pack;
|
|---|