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

Method _reconfig

code/graphics/graphics.py:505–518  ·  view source on GitHub ↗
(self, option, setting)

Source from the content-addressed store, hash-verified

503 _tkCall(_root.update)
504
505 def _reconfig(self, option, setting):
506 # Internal method for changing configuration of the object
507 # Raises an error if the option does not exist in the config
508 # dictionary for this object
509 if not self.config.has_key(option):
510 raise GraphicsError, UNSUPPORTED_METHOD
511 options = self.config
512 options[option] = setting
513 if self.canvas and not self.canvas.isClosed():
514 #self.canvas.itemconfig(self.id, options)
515 _tkExec(self.canvas.itemconfig, self.id, options)
516 if self.canvas.autoflush:
517 #_root.update()
518 _tkCall(_root.update)
519
520 def _draw(self, canvas, options):
521 """draws appropriate figure on canvas with options provided

Callers 8

setFillMethod · 0.95
setOutlineMethod · 0.95
setWidthMethod · 0.95
setArrowMethod · 0.80
setTextMethod · 0.80
setFaceMethod · 0.80
setSizeMethod · 0.80
setStyleMethod · 0.80

Calls 4

_tkExecFunction · 0.85
_tkCallFunction · 0.85
isClosedMethod · 0.80
has_keyMethod · 0.45

Tested by

no test coverage detected