Yad multiple columns each individually selectable in check list manner

927 views
Skip to first unread message

giles holt

unread,
Mar 15, 2016, 3:35:49 PM3/15/16
to yad-common
Hi,

I need to make a checklist with multiple columns, each column needs to have its own check box for each row. I’ve tried using the checklist flag but it only provides one column that's checkable and applies it across the entire row. to get around this I tried using --column=Select:CHK between each column filled with choices, but when I output the checked info to a txt file then it only records the first row (i.e. the first list item from each column). here's and example of my latest attempt:


 yad --title="Giles" --center --height="600" --width="1000" --list --print-column=0 --column=Select:CHK --column="col1:" \
FALSE "1.List item" \
FALSE "2.List item" \
FALSE "3.List item" \
FALSE "4.List item" \
FALSE "5.List item" --column=Select:CHK --column="col2:" \
FALSE "1.List item" \
FALSE "2.List item" \
FALSE "3.List item" \
FALSE "4.List item" \
FALSE "5.List item" \
FALSE "6.List item" \
FALSE "7.List item" --column=Select:CHK --column="col3:" \
FALSE "1.List item" \
FALSE "2.List item" \
FALSE "3.List item" \
FALSE "4.List item" \ --multiple --separator=" " --on-top \
        --button="gtk-save:0" --button="gtk-close:1" --editable --filename=~/CheckListChange.txt > ~/CheckListChange.txt

What's the best way to do this kind of checkbox system? really need help with this, as im at a complete loss for ideas

Many thanks in advance

Victor Ananjevsky

unread,
Mar 15, 2016, 4:09:21 PM3/15/16
to yad-c...@googlegroups.com

yad --list --print-all \
--column=col1 --column=1:chk \
--column=col2 --column=c2:chk \
--column=col3 --column=3:chk \
row11 false row12 false row13 false \
row21 true row22 false row23 false
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Victor Ananjevsky <anan...@gmail.com>

giles holt

unread,
Mar 15, 2016, 5:54:26 PM3/15/16
to yad-common
That's brilliant! worked perfectly. thank you for the fast reply, and thank you for making yad, I'm relatively new to program and script writing and yad has made the whole process allot easier and allot more fun
Reply all
Reply to author
Forward
0 new messages