To demonstrate this please:
1) invoke ironpythonconsole from DOS prompt
2) Copy and paste the next code (it is inoffensive):

import winforms
from System.Windows.Forms import *
from System.Drawing import *

def ShowFiles(multiSel=1, title="Select a File to select"):
        fd = OpenFileDialog()
        fd.Multiselect = multiSel
        fd.Title = title
        if fd.ShowDialog() == DialogResult.OK:
                return (0, fd.FileNames)
        else:
                msg = 'Selection of file(s) was cancelled.'
                MessageBox.Show(msg)
                return (1, msg)

if __name__ == '__main__':
        res = ShowFiles(title="Select files to show")
        if res[0] == 0:
                for i in res[1]:
                        print i
                MessageBox.Show("Successful show")

3) In the File dialog window Select one or more files and press OK or 
cancel.
4) All finishes well, ¿ok?

Now, save the code in a file (for example cat.py)
1) From a Dos command prompt type:   ironpythonconsole cat.py and press 
return.
2) Do the same actions as above.
3) After finishing the script with a windows message box, does not it keep 
hanged?' Please, confirm me that? Thanks.

Best regards.

_________________________________________________________________
Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, 
YupiMSN Compras: http://latam.msn.com/compras/

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to