Dear Monks
I sure would appreciate your wisdom on this one:
I have some entry boxes (only give you one here).
$case_numbertf = $page1 -> Entry(-textvariable => \$case_number) ->pla +ce(-x=> 380, -y=> 30);
And some scrollable text areas:
Then, I check to see if my user has typed in those so I can let him/her know what is not filled out.$agency_infotf = $page1 -> Scrolled('Text', -scrollbars=> 'e', -width= +> 25, -height=>1)->place(-x=> 15, -y=> 85);
if ($case_number eq ""){ $dialog = $mw-> Dialog( -title => 'Alert', -text => "Please Complete ALL the Fields on the First Tab", -buttons => [ qw(OK) ]) ->Show();
And I check the scrollable text area:
Checking the entry box works great, but it looks like I need to use something else beside eq "" to determine if the text area is empty.$agency_info = $agency_infotf->get('1.0','end'); if ($agency_info eq ""){ $dialog = $mw-> Dialog( -title => 'Alert', -text => "Please Complete ALL the Fields on the First Tab", -buttons => [ qw(OK) ]) ->Show();
Thank you in advance for your time.
ClaireIn reply to Text Widget empty string by Real Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |