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