blob: a729a713d3e6f7c43899cca87335e4512fea867f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# NOTE: Derived from ..\blib\lib\Tk\Listbox.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Tk::Listbox;
#line 893 "..\blib\lib\Tk\Listbox.pm (autosplit into ..\blib\lib\auto\Tk\Listbox\getSelected.al)"
sub getSelected
{
my ($w) = @_;
my $i;
my (@result) = ();
foreach $i ($w->curselection)
{
push(@result,$w->get($i));
}
return (wantarray) ? @result : $result[0];
}
1;
__END__
1;
# end of Tk::Listbox::getSelected
|