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:
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
I have narrowed it down to "dialog.InitialDirectory = initialdir"
I will work on it further.
Ok, apparently an error is thrown for intialdir = ".". Changing "if not initialdir : initialdir = "."" to "if not initialdir : initialdir = """ under fileboxsetup() fixes this issue.
Cameron
Thanks!
I'll update the code appropriately later.
Post a Comment