I have a program that has many Tk::Entry widgets on it. All of them require a value between 0.0 and 100.0.
I am validating the entries on 'focusout', and if the contents pass, I'm saving the value in a hash.
What I would like to be able to do is use the same validation routine for all of the entries. I'm having trouble figuring out how to save the value, though.
My version of perl is 5.6.1 built for sun4-solaris. I see in "Mastering Perl/Tk" that I should be able to call "$widget->focusLast" to find which entry just lost focus, but it's not in my Widget.pm.
Is there a way to send additional arguments to the Entry callback, beyond the 5 listed in Mastering Perl/Tk page 126?
Thanks.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.