sub doFileImportUi { my ($pg, $dbh) = @_; $pg->Label(-text => 'File', -width => '10')->grid( $pg->LabEntry(-width => '30', -textvariable => \$state->{ImpFile}), $pg->Button(-text => 'Browse', -command => [ \&getImportFile, $pg, $dbh], -width => '10')); $pg->Label(-text => 'DataSource', -justify => 'right', -width => '20') ->grid(my $ds_list = $pg->BrowseEntry(-variable => \$state->{dsSrcName}, -browsecmd => \&doGetDatasource, -listcmd => [ \&doLoadDs, $pg, $dbh ], -width => '20'), -sticky => 'w'); my $gbtn = $pg->Button(-text => 'Next Phase')->grid(); $gbtn->configure( -command => [ \&doImportFile, $pg, $dbh, $gbtn ]); my @listname = &doLoadDs($pg, $dbh); $ds_list->insert('end', @listname); } #### $pg->gridRemove($gbtn); #### --- Begin Traceback --- Failed to AUTOLOAD 'Tk::Frame::gridRemove' at start3.pl line 437 Carp::croak at K:/Perl/lib/Carp.pm line 191 Tk::Widget::__ANON__ at K:/Perl/site/lib/Tk/Widget.pm line 338 main::doImportFile at start3.pl line 437 [\&main::doImportFile,{},{},{}] Tk callback for .notebook.page4.button1 Tk::__ANON__ at K:/Perl/site/lib/Tk.pm line 228 Tk::Button::butUp at K:/Perl/site/lib/Tk/Button.pm line 111 (command bound to event)