如何为WinForms应用程序创建类似于IDLE的功能 [英] How to create IDLE -like functionality to WinForms application
问题描述
我想在C#WinForms应用程序中添加类似于IDLE的功能",但我还不知道该怎么做,也找不到对Google有用的东西.
I'd like to add "IDLE-like functionality" to C# WinForms application, but I don't quite have an idea how to do that and couldn't find anything useful with Google.
所以基本上我想要交互式命令行界面,用户可以在其中输入一些Python代码并执行它(不仅仅是表达式,应该可以定义新功能).
So basically I want interactive command line interface, where user could enter some Python code and execute it (not just expressions, should be possible to define new functions).
那么,从哪里开始呢?有什么好的教程或示例吗?
So, where to start? Are there any good tutorials or samples available?
推荐答案
Thru IronPython mailing list I found IronTextBox2, which is good example how things are done. It needs a little tweaking, to get it running, but otherwise is good solution.
这篇关于如何为WinForms应用程序创建类似于IDLE的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!