1.3.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.

Vedete Circa questo documento... per informazioni su modifiche e suggerimenti.