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

Method plotPixel

code/graphics/graphics.py:308–314  ·  view source on GitHub ↗

Set pixel raw (independent of window coordinates) pixel (x,y) to color

(self, x, y, color="black")

Source from the content-addressed store, hash-verified

306 self.__autoflush()
307
308 def plotPixel(self, x, y, color="black"):
309 """Set pixel raw (independent of window coordinates) pixel
310 (x,y) to color"""
311 self.__checkOpen()
312 #self.create_line(x,y,x+1,y, fill=color)
313 _tkExec(self.create_line, x,y,x+1,y, fill=color)
314 self.__autoflush()
315
316 def flush(self):
317 """Update drawing to the window"""

Callers

nothing calls this directly

Calls 3

__checkOpenMethod · 0.95
__autoflushMethod · 0.95
_tkExecFunction · 0.85

Tested by

no test coverage detected