On Fri, 8 Feb 2013 17:45:26 -0500
Joe Consultant <
joseph...@gmail.com> wrote:
> I'm in the process of converting all my scripts from zenity to yad. I just
> converted one that uses a radio list.
>
> Both commands below work.
>
> To do so I had to add a couple of options to the yad command. Having to
> specify a null separator doesn't look right, but if I didn't, I got my
> string followed by a vbar (|) which caused the rest of the script to fail.
> If I didn't specify --print-column=2, I got "TRUE|string|" which was even
> worse.
>
> ##NEWPR=$(zenity --list --title "Configure Default Printer" --text "New
> Default Printer" --width=300 --radiolist --column "Pick" --column
> "Printer" ${CHOICES})
>
> NEWPR=$(yad --list --title "Configure Default Printer" --text "New
> Default Printer" --width=300 --radiolist --column "Pick" --column
> "Printer" --print-column=2 --separator="" ${CHOICES})
>
> Since I am using a radio list, it "should" return only one value, so why
> would a separator be there at all?
do you mean --title option, when saying "dialog title"? if so, you are wrong. this option