You are Here:
Download Linux Lite 5.4 Final today - See Release Announcements



X Close Ad
X Close Ad
[ SOLVED ] Sorting in Zenity lists

Author (Read 6378 times)

0 Members and 2 Guests are viewing this topic.

Sorting in Zenity lists
« on: April 17, 2017, 10:10:16 PM »
 

Oobuntus

  • New to Forums
  • *
  • 33
    Posts
  • Country: ca
  • Reputation: 35
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: i7-3630QM 2.4 GHz

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD 4000

  • Kernel: 5.x
Anyone know IF and/or HOW to disable the sort action that obtains when a column header is clicked in a Zenity list?
Last Edit: April 18, 2017, 07:18:26 PM by Oobuntus
(1) LL5.0 on System76 Gazelle Pro L4P9 (2012) i7-3630QM 2.4 GHz - 8GB - Intel HD 4000 1920x1080
(2) LL4.6 on Acer Aspire 5515 (2009) AMD Athlon 2650e 1.6 GHz - 3GB - ATI Radeon Xpress 1200 1280x800
(3) LL4.6 on HP Compaq 8000 SFF (2009) Core 2 Duo E8400 3.0 GHz - 4GB - Intel 4 Integrated Graphics 1920x1080
(4) Xubuntu 18.04 on 32bit Acer Aspire 5672 (2006) Core Duo T2300 1.66 GHz - 2GB - ATI Mobility Radeon X1400 1280x800
(5) Xubuntu 18.04 on 32bit Acer Aspire 3690 (2005) Celeron 1.6GHz - 2GB - Intel GMA 950 1024x768
 


Re: Sorting in Zenity lists
« Reply #1 on: April 17, 2017, 11:39:21 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Country: 00
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
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.
Last Edit: April 18, 2017, 10:18:10 AM by bitsnpcs
 

Re: Sorting in Zenity lists
« Reply #2 on: April 18, 2017, 03:51:05 AM »
 

ralphy

  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 741
    Posts
  • Country: us
  • Reputation: 116
  • Linux Lite Developer

  • Linux Lite: 3.8 64bit
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: [Select]
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
https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

 

Re: Sorting in Zenity lists
« Reply #3 on: April 18, 2017, 07:17:34 PM »
 

Oobuntus

  • New to Forums
  • *
  • 33
    Posts
  • Country: ca
  • Reputation: 35
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: i7-3630QM 2.4 GHz

  • MEMORY: 8Gb

  • VIDEO CARD: Intel HD 4000

  • Kernel: 5.x
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.
(1) LL5.0 on System76 Gazelle Pro L4P9 (2012) i7-3630QM 2.4 GHz - 8GB - Intel HD 4000 1920x1080
(2) LL4.6 on Acer Aspire 5515 (2009) AMD Athlon 2650e 1.6 GHz - 3GB - ATI Radeon Xpress 1200 1280x800
(3) LL4.6 on HP Compaq 8000 SFF (2009) Core 2 Duo E8400 3.0 GHz - 4GB - Intel 4 Integrated Graphics 1920x1080
(4) Xubuntu 18.04 on 32bit Acer Aspire 5672 (2006) Core Duo T2300 1.66 GHz - 2GB - ATI Mobility Radeon X1400 1280x800
(5) Xubuntu 18.04 on 32bit Acer Aspire 3690 (2005) Celeron 1.6GHz - 2GB - Intel GMA 950 1024x768
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.4 Final today - See Release Announcements