windows 为命令行程序生成 GUI 的工具
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1820525/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tool to generate GUI for command line program
提问by Baffe Boyois
I'm looking for a program that semi-automatically builds a GUI for a Windows command line program.
我正在寻找一个可以半自动为 Windows 命令行程序构建 GUI 的程序。
That is, I want to give it an arbitrary command line program and somehow describe its usage ("It takes a list of filenames, and the --foo and --bar options followed by a string") and it will create a new GUI wrapper program that allows selection of files with a "Browse" dialog box and has text boxes for foo and bar.
也就是说,我想给它一个任意的命令行程序,并以某种方式描述它的用法(“它需要一个文件名列表,以及后跟一个字符串的 --foo 和 --bar 选项”),它将创建一个新的 GUI包装程序,允许使用“浏览”对话框选择文件,并具有用于 foo 和 bar 的文本框。
I remember having tried a program like this before, but I don't remember what is was called and google fails to remind me.
我记得以前试过一个这样的程序,但我不记得叫什么了,谷歌也没有提醒我。
回答by Graviton
Are you talking about Gumbie?
你是在说甘比吗?
甘比亮点:
- In theory at least, Gumbie allows you to build a GUI without ever using a GUI. It's the GUI hater's GUI builder...
- Gumbie provides reasonable defaults for the handling of a number of events, such as windowClosing.
- Gumbie comes with some features (e.g., layers) that facilitate the creation of GUIs for text-stream based command line software.
- The main module of Gumbie offers support for building java applications that can also be run as java applets within netscape or MS IE.
- 至少在理论上,Gumbie 允许您在不使用 GUI 的情况下构建 GUI。它是 GUI 仇恨者的 GUI 构建器...
- Gumbie 为处理许多事件(例如 windowClosing)提供了合理的默认值。
- Gumbie 带有一些特性(例如,层),这些特性有助于为基于文本流的命令行软件创建 GUI。
- Gumbie 的主要模块支持构建 Java 应用程序,这些应用程序也可以在 netscape 或 MS IE 中作为 Java 小程序运行。
Here's an example.
这是一个例子。