MCPcopy Index your code
hub / github.com/python/cpython / _setbgpic

Method _setbgpic

Lib/turtle.py:725–731  ·  view source on GitHub ↗

Configure image item as to draw image object at center of canvas. Set item to the first item in the displaylist, so it will be drawn below any other item .

(self, item, image)

Source from the content-addressed store, hash-verified

723 self.cv.itemconfig(item, image=image)
724
725 def _setbgpic(self, item, image):
726 """Configure image item as to draw image object
727 at center of canvas. Set item to the first item
728 in the displaylist, so it will be drawn below
729 any other item ."""
730 self.cv.itemconfig(item, image=image)
731 self.cv.tag_lower(item)
732
733 def _type(self, item):
734 """Return 'line' or 'polygon' or 'image' depending on

Callers 1

bgpicMethod · 0.80

Calls 1

tag_lowerMethod · 0.45

Tested by

no test coverage detected