IronPython应用程序的任何图形用户界面

3

你好,我想为IronPython脚本设计一个GUI界面。请问有哪种工具是最好且最易于使用的?我希望在按下按钮时运行脚本,并在文本框中显示输出。


你看过IronPython + WPF吗?你用的是哪个IDE? - Simon Opelt
@Simon Opelt 我正在使用IronPython 2.7来编写脚本,但是在IronPython中设计GUI本身是一个繁琐的过程。如果您有任何想法,能否帮我一下? - ketan
1个回答

4

"One of the easiest ways (TM)" to create simple GUIs in IronPython is by using WPF, Visual Studio, and Python Tools for Visual Studio.

You can use a visual designer to create a simple GUI with buttons, text boxes, and other components. The functions that perform the work can then be created and linked with tool support, such as generation or auto-completion.

Jeff Hardy has created a set of samples that includes a pure Python WPF app. This app shows what is required for your use-case in about 100 lines of code and markup.


请注意,Python Tools For VS 2.0及更高版本需要.NET 4.5,而该版本不支持Windows XP。 - hello_earth

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接