 |
 |
 |
Macintosh Library Modules |
 |
 |
 |
1.2.3 Executing a script from within the IDE
You can run the script in the frontmost window of the Python
IDE by hitting the run all button. You should be aware, however that
if you use the Python convention "if __name__ == "__main__":" the
script will not be ``__main__'' by default. To get that
behaviour you must select the ``Run as __main__'' option from the
small black triangle on the top right of the document window. Note
that this option is associated with the file not the
application. It will stay active after a save, however; to shut
this feature off simply select it again.
Release 2.4.5, documentation updated on 18 October 2006.
See About this document... for information on suggesting changes.
|