Gooey:将几乎所有 Python 命令行程序变成完整的 GUI 应用程序
Gooey: Turn almost any Python command line program into a full GUI application

原始链接: https://github.com/chriskiehl/Gooey

继续进行这些修改! 以下是不同 UI 元素在屏幕截图中的外观(此处显示平面布局版本,但也支持列和选项卡布局版本): 平面布局: ![flats_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/FlatLayoutScreencapture1.png“平面布局屏幕捕获 1”) ! [flats_layout](https://raw.githubusercontent.com/gitpressio/Goooy/master/docs/_static/images/ui/FlatLayoutScreencapture2.png“平面布局屏幕捕获 2”)! [flats_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/FlatLayoutScreencapture3.png“平面布局 Screencapture 3”)! [flats_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/FlatLayoutScreencapture4.png“平面布局 Screencapture 4”)! [flats_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/FlatLayoutScreencapture5.png“平面布局 Screencapture 5”) 列布局: ![columns_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/ColumnsLayoutScreencapture1.png“列布局屏幕截图 1”) ! [columns_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/ColumnsLayoutScreencapture2.png“列布局屏幕截图 2”)! [columns_layout](https://raw.githubusercontent.com/gitpressio/Gooey/master/docs/_static/images/ui/ColumnsLayoutScreencapture3.png“列布局屏幕截图 3”)! [columns_layout](https://raw.githubusercontent.com/gitpressio/

提出的论点表明,仅依赖使用 argparse 创建的程序将其范围限制为那些专门使用 argparse 的命令行程序。 当然,许多流行的 Python 命令行程序都使用 argparse,但 Click 是一种广泛使用的流行替代方案。 此外,许多程序继续使用 optparse,它已在 Python 的多个主要版本中被弃用。 因此,完全依赖使用 argparse 的程序会限制对 Python 命令行程序的有限子集的兼容性。 Quick 是基于 Click 的程序的 GUI 创建程序,提供了一种将 CLIP 程序转换为图形 UI 的替代方法,从而扩展了可支持的程序数量。 然而,仅依赖 Click 仍然排除了其他框架,例如在 Python 项目中仍然流行的 optparse。
相关文章

原文
联系我们 contact @ memedata.com