为 Linux (Gnome) shell 脚本创建 UI 的工具

发布于 2024-08-26 23:49:37 字数 118 浏览 7 评论 0原文

我正在编写一堆具有复杂选择的 Linux shell 脚本。现在我使用 zenity 作为提示。我宁愿使用可以一次显示多个 UI 元素并在脚本中查询它的东西(例如列表和一些复选框以及文件选择器和输入字段)。 我有什么选择?

I'm writing a bunch of Linux shell scripts with complex selections. For now I use zenity for prompts. I'd rather use something where I can show more than one UI element at a time and query it in a script (e.g. a list and some checkboxed and a file picker and an entry field.
What are my options?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

天涯离梦残月幽梦 2024-09-02 23:49:37

我相信 GTKDialog 附带了流行的 用于 shell 脚本的基于 Curses 的对话框实用程序

但是,我不确定它是否能满足您的复杂需求。无论如何,它都是一个起点。

I believe GTKDialog comes with extended gtk-ified versions of the popular curses based dialog utility for shell scripts.

I'm not sure if it will serve the complexity of your needs, however. In any event, its a place to start.

天气好吗我好吗 2024-09-02 23:49:37

你将不得不升级到更有能力的职位。 PyGTK 与 Glade 相当强大,而 Python 也很容易上手。

You're going to have to move up to something more capable. PyGTK with Glade is fairly powerful, and Python is easy enough to pick up.

小…红帽 2024-09-02 23:49:37

autoglade 也可以帮助您为命令脚本提供图形用户界面,在许多情况下无需额外的操作编程。

一些文档和教程可以在此处找到。

autoglade could also be of help to give your scripts of commands a graphical user interface, in many cases with no additional programming.

Some docs and tutorials can be found here.

雪化雨蝶 2024-09-02 23:49:37

zenity 3 现在可以选择创建包含多个元素的表单。请参阅以下错误报告

https://bugzilla.gnome.org/show_bug.cgi?id= 412493

zenity 3 now has a option to create a form with multiple elements. See the following bug report

https://bugzilla.gnome.org/show_bug.cgi?id=412493

明月松间行 2024-09-02 23:49:37

Yad 是 Zenity 的一个分支,添加了几乎与 Gtkdialog 一样多的功能。大部分也向后兼容。

Yad is a fork of Zenity that adds almost as much functionality as Gtkdialog. Mostly backward compatible too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文