代码改变世界

gdialog

  @学无止境  阅读(12)  评论(0编辑  收藏  举报
复制代码
#! /bin/sh
#gdialog --title "Question" --msgbox "Welcometo my survey" 9 18
gdialog --title "Confirm" --yesno "Are you willing to take part?" 9 18
#echo $? 
if [ $? != 0 ] 
then
  gdialog --infobox "thank you " 5 20
  sleep 2
  gdialog --clear
  exit 0
fi

gdialog --title "Quest" --inputbox "please enter your name " 9 20 2>_1.txt
Q_NAME=$( cat '_1.txt' )
echo $Q_NAME

gdialog --menu "$Q_NAME,whate do you like best?" 15 30 4 1 "classic" 2 "Jazz" 3 "Country" 4 "Other" 2>_1.txt
Q_MUSIC=$(cat _1.txt)
echo $Q_MUSIC
sleep 2
gdialog --clear 
exit 0
复制代码

 

相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
点击右上角即可分享
微信分享提示