Template1
# Template of a function to get and show a hard coded picture file
def <function name>():
file = '<file name>.jpg'
picture = makePicture(file)
show(picture) <or openPictureTool(picture)>
# Template of a function to get and show a user entered picture file
def <function name>( file ):
picture = makePicture(file)
show(picture) <or openPictureTool(picture)>
# Template of a function to get and show a pickAFile picture file
def <function name>():
file = pickAFile()
picture = makePicture(file)
show(picture) <or openPictureTool(picture)>
Links to this Page
- Excersise Set 1 last edited on 24 January 2007 at 4:59 am by c-24-99-178-198.hsd1.ga.comcast.net
- Spring 2007 materials last edited on 21 August 2007 at 10:44 pm by user-1121vkp.dsl.mindspring.com