# The instruction for creating a subprocess to communicate with the Quickdraw library # was provided by Nathaly Verwaal. # Put the import at the very top of your Python program import subprocess # Pick one of the options below (MAKE SURE that you delete the other option). # Option 1 # Use the following if you downloaded Quickdraw using Internet Explorer (file is called # "quickdraw.zip" # This should be somewhere in the beginning of your program, at the very least before your # program creates any drawings. quickdraw = subprocess.Popen(['java', '-jar', './quickdraw.zip'], stdin = subprocess.PIPE) # Option 2 # Use the following if you downloaded Quickdraw using Firefox (file is called # "quickdraw.jar" # JT's note: If you downloaded Quickdraw using Firefox and Quickdraw keeps the '.jar'suffix # then you should replace the above instruction with the one below. quickdraw = subprocess.Popen(['java', '-jar', './quickdraw.jar'], stdin = subprocess.PIPE)