sandeep.ses has asked for the wisdom of the Perl Monks concerning the following question:

i am trying to use a lab entry widget .. Wheni click the button it displays the test.mrc not the value i typed in the entry here is the code
$output = 'test.mrc'; my $output_entry = $mrc_frame->LabEntry( -label=>'Output File Name', -labelPack=>[qw/-side left -anchor w/], -labelFont=>'9x13bold', -relief=>'flat', -textvariable=>\$output, -width=>15, ); my $info_test = $mrc_frame->Button( -text => 'Generate & View', -font => $gui_font, -background =>'#336699', -foreground =>'white', -padx=>4, -pady=>$button_pady, -command =>[sub{ printf "pdb2mrc $_[0] $_[1]"; + },$input_file,$output] )->pack(-pady=>4, -side=>'left');
wat am i missing out here ? Sandeep

Replies are listed 'Best First'.
Re: Tk lab entry widget
by Joost (Canon) on Jul 06, 2004 at 16:55 UTC