Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
I have a Tk::BrowseEntry widget populated with a list of values. When I call get('active') (since the get method is for the listbox 'sub-widget')on that widget with nothing selected, it returns the first item in the listbox. Quite obviously that item passes my quality checks since it was put in the list as a valid possibility
Is there a way I can keep it from doing this? Make the first Item in the list a null string that doesn't pass my checks? That's not quite elegant but it would work.
Any thoughts are appreciated,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::BrowseEntry -- get() with nothing selected
by eserte (Deacon) on Jun 04, 2004 at 16:51 UTC | |
by Grygonos (Chaplain) on Jun 07, 2004 at 14:30 UTC | |
by eserte (Deacon) on Jun 07, 2004 at 14:43 UTC | |
by Grygonos (Chaplain) on Jun 07, 2004 at 14:49 UTC |