aquaballoon

zenity - multi menu

Dec 3rd, 2011
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3.  
  4. while true; do
  5.   choice="$(zenity --width=200 --height=150 --list --column "" --title="test" \
  6.  "Go to next menu" \
  7.  "Exit ")"
  8.  
  9.   case "${choice}" in
  10.     "Go to next menu" )
  11.       while true; do
  12.         choice2="$(zenity --width=200 --height=150 --list --column "" --title="test" \
  13.        "Do Something" \
  14.        "Do Something Else " \
  15.        "Back")"
  16.  
  17.         case "${choice2}" in
  18.           "Do Something" )
  19.             echo "hello"
  20.           ;;
  21.           "Do Something Else " )
  22.             echo "hello"
  23.           ;;
  24.           *)
  25.             break
  26.           ;;
  27.         esac
  28.       done
  29.     ;;
  30.     *)
  31.       break
  32.     ;;
  33.   esac
  34. done
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment