Sorting in Zenity lists - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7) +--- Forum: Coding (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=33) +--- Thread: Sorting in Zenity lists (/showthread.php?tid=3964) |
Sorting in Zenity lists - Oobuntus - 04-18-2017 Anyone know IF and/or HOW to disable the sort action that obtains when a column header is clicked in a Zenity list? Re: Sorting in Zenity lists - bitsnpcs - 04-18-2017 Hello Oobuntus, I don't know Zenity, I just search for you, if it is any help to try until the experienced ones come along. http://manpages.ubuntu.com/manpages/trusty/man1/zenity.1.html There doesn't seem to be much else about it, this same list reproduced on many sites, and 3 examples using Zenity, all used IF loops and arrays, I think if this was the case you would have already solved it by altering/reordering that, or changed the loop back to its beginning line, so it is something more complex than the examples for people new to Zenity that I seen in the searches. Re: Sorting in Zenity lists - ralphy - 04-18-2017 (04-18-2017, 02:10 AM)Oobuntus link Wrote: Anyone know IF and/or HOW to disable the sort action that obtains when a column header is clicked in a Zenity list? It is built-in. There is no way to disable it. As long as you can click it it sorts... You can hide the columns headers though, which will prevent interaction with the column header sorting but if you are specifically interested in leaving headers ON, then this is a feature that as far as I'm concerned it isn't available in zenity. Code: zenity --list --radiolist --hide-header --text="<b>A</b> is at the bottom and can't be sorted" --column="Pick" --column="Letter" FALSE Z TRUE A For more see ~$ zenity --help-all Re: Sorting in Zenity lists - Oobuntus - 04-18-2017 Thanks for the responses. Using --hide-header was the solution. All I had to do was add a fake header to the top of the list. |