[Pythonmac-SIG] Exiting/Quitting an applet
Leisa Bilyeu
basicprinting@earthlink.net
Mon, 26 Mar 2001 21:48:59 -0500 (EST)
What am I doing wrong with macPython2.0?
I type the following into the IDE and save as an Applet.
"""Exiting/Quitting an applet
an example of how NOT to do it.
"""
import sys
import os
def main():
forkIt = ""
quitter = "quit"
if forkIt != "do it":
sys.exit
print "why does this line print?"
if quitter == "quit":
quit
print "why do either of these lines print?"
if __name__=='__main__':
main()
print
print
print " This line should not print either."
print " Don't forget to quit this window.................."