YAD:从shell脚本或命令行显示图形对话框
YAD: display graphical dialogs from shell scripts or command line

原始链接: http://yad-guide.ingk.se/#_introduction

YAD(Yet Another Dialog)是一个用于开发图形用户界面的简单工具,可以与bash集成。在终端输入 yad --help-all 可以查看所有命令行帮助。不幸的是,此帮助信息不足以充分展现YAD的强大功能。因此我编写了这份指南。本指南中的大部分信息来自YAD帮助和YAD手册页,以及我在互联网上找到的一些示例。指南分为几个页面,以便更容易找到所需内容。如果指南中使用的示例来自其他来源,则会在示例中注明。所有截图均由本人在安装了Qogir图标主题和Salix Gtk3主题的Salix OS 15.0系统上制作。Qogir图标主题有自己的YAD图标,这就是为什么我的截图没有默认的YAD图标。所有示例均在Salix OS 15.0上的YAD 12.3版本中测试,但是,我并没有测试所有可用的选项。希望这份指南对您有所帮助。

Hacker News 上的一篇讨论围绕着 YAD 展开,YAD 是一款用于从 shell 脚本创建图形对话框的工具。用户们讨论了其他一些替代方案,例如 `dialog`(一个基于终端的 UI)和 Textual(一个 Python TUI 框架),称赞 `dialog` 的普遍性和简单性。一些人欣赏 Textual 更花哨的界面,但也注意到了它对 Python 的依赖。`sourcedialog` 等其他替代方案也被提及。一位用户回忆起 SGI IRIX 的双模式方法,在这种方法中,程序同时提供命令行和 GUI 界面。这位用户称赞了该环境的生产力以及在 GUI 和 CLI 操作之间无缝切换的能力。另一位用户回忆起使用 SGI 机器及其强大的编译器时的经历。人们希望 GUI 工具具有原生外观和感觉,但讨论也承认跨平台 GUI 开发的难度,并赞赏更简单、更易移植的命令行工具。wxWidgets 也被提及作为原生部件的另一种可能替代方案。

原文

YAD - (Yet Another Dialog) is a simple tool for developing Graphical User Interfaces. It will integrate with bash.

Type yad --help-all in a terminal to see all command line help.

Unfortunately this help does not provide enough information on how to use yad to it’s full potential.
This is why i wrote this guide.

Most of the information is gathered from YAD help and YAD man page and some examples i have found on internet.

The guide is splited in several pages so it should be easier to find what you are looking for.

If examples used in this guide is from other sources it will be given at the examples.
All screenshots is made by me on Salix OS 15.0 with Qogir icon theme and Salix Gtk3 theme. The Qogir icon theme has its own yad icon and thats why my screenshots don’t have the default YAD icon.

All examples are tested with YAD 12.3 on Salix OS 15.0, However, I have not tested all available options.

I hope you find it usefull.

联系我们 contact @ memedata.com