I am trying to capture the contents of a Text field in a Tk window, and then do something only if the field had text in it. It would look like this:
I have not been able to find a condition that triggers - it seems like there is a single newline harvested from the text field, but testing for it isn't getting me anywhere. Pointers would be appreciated. Thanks.my $data = $text -> get('1.0','end'); if ($text actually_contains_text) { do some stuff } else { skip to the next step }
In reply to Tk::Text Validation by willyyam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |