Tk-SimpleFileSelect
view release on metacpan or search on metacpan
lib/Tk/SimpleFileSelect.pm view on Meta::CPAN
'DEFAULT' => [ 'dir_list' ],
);
$w->protocol('WM_DELETE_WINDOW' => ['Cancel', $w ]);
$w->{'reread'} = 0;
my $l = $w->Component( Label => 'entry_label',-text => 'File Name: ');
$l->grid( -column => 1, -row => 3, -padx => 5, -pady => 5 );
my $e = $w->Component(Entry => 'file_entry', -textvariable=>\$w->{Configure}{-initialtext});
$e->grid(-column => 2, -columnspan => 1, -padx => 5, -pady => 5, -row => 3, -sticky => 'e,w' );
$e->bind('<Return>' => [$w => 'Open', Ev(['getSelected'])]);
my $lb = $w->Component(
ScrlListbox => 'dir_list',
-scrollbars => 'se',
#-width => \$w->{Configure}{-width}, # Can't set -width to `SCALAR(0x34dca94)'
#-height => \$w->{Configure}{-height},
);
$lb->Subwidget('yscrollbar')->configure(-width=>10);
( run in 0.314 second using v1.01-cache-2.11-cpan-a5abf4f5562 )