如何为WinForms应用程序创建类似于IDLE的功能 [英] How to create IDLE -like functionality to WinForms application

查看:107
本文介绍了如何为WinForms应用程序创建类似于IDLE的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在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?

推荐答案

通过IronPython邮件列表,我发现

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆