1

我正在尝试使用 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

在分析时我发现错误是由于 option --forms

如果除了使用选项之外还有其他方法可以在 Zenity 中创建表单,请告诉我--forms

4

1 回答 1

2

您的命令在 ubuntu 上的zenity 3.4.0上运行良好:

在此处输入图像描述

尝试更新zenity

于 2013-04-26T19:59:50.610 回答