"be consistent" | |
PerlMonks |
Re: Different behavior of Tk program in two versions of Perlby Anonymous Monk |
on Jul 01, 2018 at 23:23 UTC ( [id://1217715]=note: print w/replies, xml ) | Need Help?? |
<h1> for the honor What change in 5.26.2 (probably earlier?) results in this behavior? Does it matter? The answer is no :) <Reveal this spoiler or all in this thread>
The menu option “Sort and Filter” -> “Advanced sorting” can sort the list on up to 3 columns. It seems to work in both versions. In 5.16.3, the mask “Advanced sorting”, that is, a grid of three rows of BrowseEntry (to choose a column) and Checkbuttons (to define ascending or descending sorting) – this mask is empty on every new call. In 5.26.2, if I call the menu more times, some BrowseEntrys are set with the name of the first columns (not empty as the should). I can change the column choice or even delete an entry. However I cannot get why the entries are set just on call of the menu. That is kind of difficult to read, anyway, see spoiler above (and notice its short), but With one click for a menu/submenu/popup/dropdown/checkbox ... thats too many clicks for simple sort. A better idea is to use one of Tk::MListbox , Tk::Table, https://metacpan.org/pod/distribution/Tk-TableMatrix/pod/TableMatrix.pod, Sorted lists in Tk ... to sort you simply click on the column heading. one ascending, one descending, one no sorting*.
<h1> for the honor 2018-07-03 Athanasius removed <h1> tags
In Section
Seekers of Perl Wisdom
|
|