¿Cómo hacer una ventana dividida Yad, división superior = texto y división inferior = barra de progreso?


0

No puedo entender cómo hacer una ventana dividida Yad, división superior = texto y división inferior = barra de progreso. Mi intento a continuación falló.

id=$(echo $[($RANDOM % ($[10000 - 32000] + 1)) + 10000] )
Settings=$(cat ~/tmp/YadWindow4SelectedSettings.txt)

{
echo 25
echo "#25%"
echo 50
echo "#50%"
echo 75
echo "#75%"
echo 100
echo "#100%"
} |
yad --plug=$id --tabnum=1 --progress --auto-close --auto-kill --center --width=700 --image=$ICON --image-on-top --title="Loading..." --percentage=0 &> res1 &
yad --plug=$id --tabnum=2 --text="$Settings" &> res2 &
yad --length=800 --width=800 --center --paned --key=$id --splitter="200"

Respuestas:


0

Me ayudaron en otros lugares con consejos sobre un método alternativo para obtener el mismo resultado. Usando esto escribí lo siguiente, que parece funcionar lo suficiente para mí:

Settings=$(cat ~/tmp/YadWindow4SelectedSettings.txt)

{
echo 25
echo "#25%"
sleep 2
echo 50
echo "#50%"
sleep 2
echo 75
echo "#75%"
sleep 2
echo 100
echo "#100%"
} |
yad --progress --enable-log --log-on-top --log-expanded --auto-close --auto-kill --center --width=700 --image=$ICON --image-on-top --title="Loading..." --text="$Settings" --percentage=0
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.