Integrating Python with .NET
We've just explored how PTVS can easily integrate Python into VS2013. Now, Will now look at IronPython, which integrates Python with the .NET and Mono platforms.
IronPython provides the ability to write applications that use WPF and WinForms as well as easily call the .NET code from within your Python program. Whether you want to do some rapid prototyping or build a full application, IronPython can be a useful addition to your developer toolbox.
Getting ready
IronPython is available for download at http://ironpython.codeplex.com/. This recipe assumes you have installed PTVS as described in the Integrating Python into Visual Studio recipe.
How to do it…
Once you have installed IronPython, open Visual Studio 2013 and perform the following steps:
We are going to create new project using the IronPython Windows Forms Application template under Python.
The project will open with a Python listing in the editor window. This gives us an application skeleton that we can easily...