Feeds

Pump some IronPython with Studio IDE

Visual Studio stripped for action

Build a business case: developing custom apps

Other widgets are as easy to access and program. For example, to grab a list of Excel workbooks in a directory that's entered in a text box and then dump them into a list box on the click of a button, we can add the following code to the button click event:


@accepts(Self(), System.Object, System.EventArgs)
@returns(None)
def _button1_Click(self, sender, e):
import glob
wkbs = glob.glob(self._textBox1.Text)
self._wkbList.Items.Clear()
for w in wkbs:
self._wkbList.Items.Add(w)

As previously mentioned, WinForms aren't the only GUI option, and there's support for Windows Presentation Foundation included as well. This includes editor support for XML, necessary for the editing of XAML files that define the GUI components.

The IDE provides both a design view and a XAML view, so that widgets can be dragged onto a container and the XAML is updated automatically. And it's a two-way process: edits to the XAML are rendered in the design view.

Debugging is very straightforward, with all of the normal debugging functionality provided for - stepping through code, setting breakpoints and watches, viewing debug output, local variables and so on. In practice this is one area of IronPython Studio that is prone to tip, but then this seems a bit ropey even in Visual Studio 2005 for more complex applications.

Deployment and builds are also handled within the IDE, which means that it's possible to create an IronPython application that can be packaged as a .exe and distributed along with the IronPython .dll files for deployment. Multiple build types can be defined for a project and these can be built, rebuilt or cleaned - dynamically or in batches.

Another thing worth noting is the facility to have an IronPython interpreter session open in a dockable window, which is kind of nice for those who like to try things out interactively and then paste the code into their projects. For seasoned Pythonistas this is very much in the "glad to have" category.

Other nice features include a server and database explorer, and a snippets manager so you can template bits of code for easy insertion into your applications.

In all, IronPython Studio provides a pretty good environment for developing Python applications for the .NET platform. At the moment there's a lot of focus on dynamic or scripting languages - such as Python, Ruby and Groovy - exploiting the Java platform. The existence of IronPython shows .NET isn't about to be left behind while IronPython Studio provides some much needed tool support.®

Boost IT visibility and business value

More from The Register

next story
KDE releases ice-cream coloured Plasma 5 just in time for summer
Melty but refreshing - popular rival to Mint's Cinnamon's still a work in progress
Leaked Windows Phone 8.1 Update specs tease details of Nokia's next mobes
New screen sizes, dual SIMs, voice over LTE, and more
Mozilla keeps its Beard, hopes anti-gay marriage troubles are now over
Plenty on new CEO's todo list – starting with Firefox's slipping grasp
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
Another day, another Firefox: Version 31 is upon us ALREADY
Web devs, Mozilla really wants you to like this one
Secure microkernel that uses maths to be 'bug free' goes open source
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Cloudy CoreOS Linux distro declares itself production-ready
Lightweight, container-happy Linux gets first Stable release
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.
Maximize storage efficiency across the enterprise
The HP StoreOnce backup solution offers highly flexible, centrally managed, and highly efficient data protection for any enterprise.