m***@gmail.com
2014-02-18 09:28:41 UTC
hi, can you please help i am trying to align my widgets all to the left but it is not working. there are in a frame.
$labelName =$Frame->Frame->pack( -side => 'top', -pady => 15, -anchor => 'nw' );
$labelName ->Label(
-text => 'Name',
-font => '-*-Verdana-Bold-R-Normal-*-*-90-*-*-*-*-*-*'
)->grid($labelName ->Entry( -textvariable => \$new_imp_legend )->pack( -padx => 15 ));
$labelName2 =$Frame->Frame->pack( -side => 'top', -pady => 15, -anchor => 'nw' );
$labelName2 ->Label(
-text => 'Surname',
-font => '-*-Verdana-Bold-R-Normal-*-*-90-*-*-*-*-*-*'
)->grid($labelName2 ->Entry( -textvariable => \$new_imp_legend )->pack( -padx => 15 ));
$CheckButton= $Frame->Frame->pack( -pady => 10, -anchor => 'nw' );
$CheckButton->Label(
-text => 'Are you happy?',
-font => '-*-Verdana-Bold-R-Normal-*-*-90-*-*-*-*-*-*',
)->grid($CheckButton->Checkbutton(
-variable => \$is_cosmetic,
-onvalue => "Y",
-offvalue => "N",
-state => $nstate )->pack() );
please help.
$labelName =$Frame->Frame->pack( -side => 'top', -pady => 15, -anchor => 'nw' );
$labelName ->Label(
-text => 'Name',
-font => '-*-Verdana-Bold-R-Normal-*-*-90-*-*-*-*-*-*'
)->grid($labelName ->Entry( -textvariable => \$new_imp_legend )->pack( -padx => 15 ));
$labelName2 =$Frame->Frame->pack( -side => 'top', -pady => 15, -anchor => 'nw' );
$labelName2 ->Label(
-text => 'Surname',
-font => '-*-Verdana-Bold-R-Normal-*-*-90-*-*-*-*-*-*'
)->grid($labelName2 ->Entry( -textvariable => \$new_imp_legend )->pack( -padx => 15 ));
$CheckButton= $Frame->Frame->pack( -pady => 10, -anchor => 'nw' );
$CheckButton->Label(
-text => 'Are you happy?',
-font => '-*-Verdana-Bold-R-Normal-*-*-90-*-*-*-*-*-*',
)->grid($CheckButton->Checkbutton(
-variable => \$is_cosmetic,
-onvalue => "Y",
-offvalue => "N",
-state => $nstate )->pack() );
please help.