MCPcopy Index your code
hub / github.com/csev/py4e / __init__

Method __init__

code/graphics/graphics.py:865–873  ·  view source on GitHub ↗
(self, pt, pixmap)

Source from the content-addressed store, hash-verified

863 imageCache = {} # tk photoimages go here to avoid GC while drawn
864
865 def __init__(self, pt, pixmap):
866 GraphicsObject.__init__(self, [])
867 self.anchor = pt.clone()
868 self.imageId = Image.idCount
869 Image.idCount = Image.idCount + 1
870 if type(pixmap) == type(""):
871 self.img = tk.PhotoImage(file=pixmap, master=_root)
872 else:
873 self.img = pixmap.image
874
875 def _draw(self, canvas, options):
876 p = self.anchor

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected