Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 675

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 671

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/fuzzyman/webapps/www.ironpython.info/includes/MagicWord.php on line 675
Hello World - IronPython Cookbook

Hello World

From IronPython Cookbook

Line 21: Line 21:
Starting the application loop (''Application.Run(form)'') takes control until you close the form: you can't enter any more commands in the interpreter until this is done.
Starting the application loop (''Application.Run(form)'') takes control until you close the form: you can't enter any more commands in the interpreter until this is done.
-
The IronPython distribution comes with some example code in the tutorial directory: ''winforms.py''.  This creates a hidden form, and puts the interactive interpreter on a background thread. So long as this file is on your path (or in the same directory as '''ipy.exe'''), you can execute '''import winforms'''.
+
The IronPython distribution comes with some example code in the tutorial directory: ''winforms.py''.  This starts the event loop, and puts the interpreter on a background thread. So long as this file is on your path (or in the same directory as '''ipy.exe'''), you can execute '''import winforms'''.
-
This allows you to create (and inspect) live GUI objects interactively.
+
This allows you to create (and inspect) live GUI objects interactively, without the interpreter blocking.

Revision as of 17:04, 27 May 2007

TOOLBOX
LANGUAGES