in reply to Tk BrowseEntry -listcmd problem

If I understand what you are trying to do, You could probably just hold off on setting your commands and use 'configure', like this:
$pgl->Label( -text => 'Project', -justify => 'right', -width => '20') ->grid( $pr_list = $pgl->BrowseEntry( -variable => \$state->{prSrcName}, -width => '20'), -sticky => 'w', -pady => '20'); $pr_list->configure( -browsecmd => \&doGetProject, -listcmd => [ \&doLoadPr, $dbh, $pr_list ] );

Replies are listed 'Best First'.
Re: Re: Tk BrowseEntry -listcmd problem
by jdtoronto (Prior) on Aug 27, 2003 at 17:23 UTC
    Thanks fletcher_the_dog - thats the way to solve it.

    I find the Perl/Tk documentation and "Mastering Perl/Tk" both ponderous when it comes to these sorts of questions.

    jdtoronto

      I've added a few links to Perl/Tk resources on my home node, you may find some of them useful when the docs and MPTK aren't clear enough.

      converter