使用BASH脚本在Zenity中创建表单?

时间:2013-04-18 14:38:35

标签: bash zenity

我正在尝试使用BASH脚本以zenity创建表单。

我试过官方网站上提供的那个 https://help.gnome.org/users/zenity/stable/forms.html.en但它会引发错误。

代码和错误如下:

zenity --forms --title="Add Friend" --text="Enter information about your friend." \
  --separator="," --add-entry="First Name" --add-entry="Family Name" \
  --add-entry="Email" --add-calendar="Birthday"

错误:

This option is not available. Please see --help for all possible usages

在分析时,我发现错误是因为选项--forms

请告诉我除了使用选项--forms

之外,还有其他方法可以在Zenity中创建表单

1 个答案:

答案 0 :(得分:2)

你的命令在ubuntu上的 zenity 3.4.0 上运行正常:

enter image description here

尝试更新zenity