My hobbyist coding updates and releases as the mysterious "Mr. Tines"

Sunday 28 March 2010

EasyWPF 0.3.93

Having been made aware of the Python EasyGui project while reviewing "Hello World", I thought that maybe there should be an equivalent version for IronPython. So here is one (with just a minimal amount of fudging in places):


Plain unformatted code for easy cutting and pasting.

Save this as EasyWPF.py, and use

from EasyWPF import *

in place of

from easygui import *

4 comments:

Anonymous said...

I know this is an old blog, but I appreciate the work that you have put into this. One issue that I am having is with the fileopenbox. I continue to get "Value does not fall within the expected range." for "if dialog.ShowDialog():"

I will continue to try to track down the issue. This is in IronPython 2.7.3

Cameron

Anonymous said...

I have narrowed it down to "dialog.InitialDirectory = initialdir"

I will work on it further.

Anonymous said...

Ok, apparently an error is thrown for intialdir = ".". Changing "if not initialdir : initialdir = "."" to "if not initialdir : initialdir = """ under fileboxsetup() fixes this issue.

Cameron

Steve Gilham said...

Thanks!

I'll update the code appropriately later.