Yurttas/PL/SL/python/docs/core-python-programming/doc/20/mac/IDEapplet.html

Revision as of 20:04, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/20/mac/IDEexecution.html|[[Image:yurttas...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


1.6.4 ``Save as'' versus ``Save as Applet''

When you are done writing your Python script you have the option of saving it as an ``applet'' (by selecting ``Save as applet'' from the ``File'' menu). This has a significant advantage in that you can drop files or folders onto it, to pass them to the applet the way command-line users would type them onto the command-line to pass them as arguments to the script. However, you should make sure to save the applet as a seperate file, do not overwrite the script you are writing, because you will not be able to edit it again.

Accessing the items passed to the applet via ``drag-and-drop'' is done using the standard sys.argv mechanism. See the general documentation for more

Note that saving a script as an applet will not make it runnable on a system without a Python installation.


See About this document... for information on suggesting changes.