IronPython and WPF Redux

The other day I was talking about how lame it was writing WPF in code using IronPython. Again, I think IronPython rocks the house. But let me reiterate this: writing WPF in code (I am talking about no XAML) is just a bad experience - for me.

But sure enough, as I suspected, I was doing things all wrong. As Steve Gilham pointed out to me, I could have downloaded IronPython Studio  and been developing IronPython/WPF apps using XAML all along. So, I followed his advice and downloaded it, then proceeded to write my first real Python app. I sense that I am still doing things all wrong, but I made some progress.

My WPF, on a scale of 1-10, is a 1 here. I can do much better, but I was more concerned about getting something up and running. I'll make it pretty later.

My "code is Pythony" rating, I am guessing is somewhere around a 2.5. I just don't know, you tell me - but be nice please. When you look at the code, it is obvious that I have no sense of Python style. Painfully obvious. I kind of glanced over the Python style guide, but I got a little motion sick so I stopped without reading it too carefully.

The app itself, I think, is very useful - but it definitely needs work. It's called Viron (that's a nod to Gene Wolfe, one of my favorite sci-fi authors). It's a simple app for managing the %PATH% environment variable. In Vista, it takes 9 clicks to get to this information and that gets really old if you have to modify this stuff a lot (I do).

You can download it here. If you are running Vista, you need to run the app as an Administrator.

December 21, 2008 15:05 by JP
E-mail | Permalink | Comments (2) | Comment RSSRSS comment feed

Related posts

Comments

December 22. 2008 00:49

pingback

Pingback from alvinashcraft.com

Dew Drop - December 22, 2008 | Alvin Ashcraft's Morning Dew

alvinashcraft.com

December 23. 2008 01:41

Eric Geiger

Wow, this looks very cool, JP. I know absolutely nothing of Python/IronPython, but I'm going to give this a once-over anyhows. Plus, I would like to at least attempt to learn a new language; looking at your project should be a good incentive.

- Eric

Eric Geiger

Comments are closed