How to set picture as background in python? I am only importing Graphics. No pygames or turtles -
i checked document graphics. says:
image(anchorpoint, filename)
constructs image contents of given file, centered @ given anchor point. can called width , height parameters instead of filename. in case, blank (transparent) image created of given width , height.
but tried type: window = graphwin("game", 400, 400)
image((200,200),"flower.png")
but doesnt work.
do need import picture first??or add window?
please help.
this should work, missed anchorpoint
from graphics import * window = graphwin("game", 400, 400) myimage=image(point(200,200),"flower.png") myimage.draw(window)
Comments
Post a Comment