Form - Notepad

Category: Notepad - Forms
Published: 15 November 2017
Written by Bobby Cooper Hits: 426

Form - Notepad | 2 top tabs | 3 columns | 

Yad Notepad Form 2 top tabs 3 Columns  

#!/bin/bash

id=$(echo $[($RANDOM % ($[10000 - 32000] + 1)) + 10000] )

echo "$id"

yad --plug="$id" --tabnum=1 --form --field="test:FBTN" "eom" \
--field="test1:BTN" "eom"&> /tmp/data1 &

yad --plug="$id" --tabnum=2 --form --columns="3" \
--field="test2:FBTN" "eom1" \
--field="test3:BTN" "eom2" \
--field="test4:FBTN" "eom3" &> /tmp/data2 &

yad \
--notebook --key="$id" --center --tab="tab1" --separator="\n"--tab="tab 2" \
--width=300 \
--height=200

case $? in
0)

Command goes here
exit;;
1)

Command goes here

exit;;
70)
exit;;
252)
exit;;
esac