Just interested, the real development can not dare to use this example is to see the first to IronPython from Jim Hugunin's Blog, you can download http://ironpython.com/ download after IronPython website. Enter the bin directory from the command line to the IronPython directory, execute IronPythonConsole.exe launch shell, as shown: then type line in the code: >>> from system.windows.drawing import * >> > f = form (text = "aaa") >>> f.Showdialog () The last line of code will appear a form after the end of the line.
You can also write directly to Notepad: from system.windows.forms import * from system.drawing import * f = form (Text = "aaa") f.ShowDialog () Save as Test.py file, then execute in IronPythonConsole: D: / ironpython / bin> IronPythonConsole C: / Test.py and the above effect is the same Jim Hugunin's blog here,