【问题标题】:Create Form in Zenity using BASH script?使用 BASH 脚本在 Zenity 中创建表单?
【发布时间】:2013-04-18 14:38:34
【问题描述】:

我正在尝试使用 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 中创建表单,请告诉我

【问题讨论】:

  • 我在 CentOS 机器上工作

标签: bash zenity


【解决方案1】:

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

尝试更新zenity

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-21
    • 2019-05-01
    • 1970-01-01
    相关资源
    最近更新 更多