yad \
--width 300 \
--height 300 \
--center \
--on-top \
--skip-taskbar \
--borders="30" \
--columns 1 \
--form \
--button="gtk-help":0 \
--button="gtk-close":1 \
--buttons-layout=end \
--field="<b><big>Cbutton1</big></b>!gtk-preferences":FBTN "bash main_choose.sh" && exit 0 \
--field " ":lbl "" \
--field="<b><big>button2</big></b>!gtk-preferences":FBTN "bash main_xhoose2.sh" && exit 0 \
--field " ":lbl "" \
It is possible to close this dialog option, when I click on FBTN? I need to open another yad dialog (main_choose.sh) and close the current one. this option
bash main_choose.sh" && exit 0 does not work.
Thnak you.
Enter code here...
yad \
--title "Dialog 01" \
...
#!/bin/bash
#closes calling window
wmctrl -c "Dialog 01"
....
--
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.
#!/bin/bash
yad \
--width 300 \
--height 300 \
--center \
--on-top \
--skip-taskbar \
--borders="30" \
--columns 1 \
--form \
--button="gtk-close":0 \
--button="gtk-ok":1 \
--button="gtk-apply":2 \
--buttons-layout=end
case $? in
1)
yad --calendar --center;;
2)
yad --entry --center;;
esac
exit--field="<b><big>Analysis</big></b>!gtk-preferences":FBTN 'bash -c "'$quality'/main_choose_qual.sh ; kill -USR1 $YAD_PID"' \
setsid yad \
--width 300 \
--height 300 \
--center \
--on-top \
--skip-taskbar \
--borders="30" \
--columns 1 \
--form \
--button="gtk-help":0 \
--button="gtk-close":1 \
--buttons-layout=end \
--field="<b><big>Cbutton1</big></b>!gtk-preferences:fbtn" 'bash -c "main_choose.sh & kill -USR1 $YAD_PID"' \
--field " ":lbl "" \
--field="<b><big>button2</big></b>!gtk-preferences:fbtn" 'bash -c "main_xhoose2.sh & kill -USR1 $YAD_PID"' \
--field " ":lbl ""