MCPcopy Create free account
hub / github.com/ActiveState/code / toggleImage

Method toggleImage

recipes/Python/578875_Analog_Clock/recipe-578875.py:193–197  ·  view source on GitHub ↗
(self,event)

Source from the content-addressed store, hash-verified

191 ## Toggles the displaying of a background image.
192 #
193 def toggleImage(self,event):
194 if hasPIL and os.path.exists (self.imgPath):
195 self.showImage = not self.showImage
196 self.setColors()
197 self.resize(event)
198
199 ## Redraws the whole clock.
200 #

Callers

nothing calls this directly

Calls 3

setColorsMethod · 0.95
resizeMethod · 0.95
existsMethod · 0.45

Tested by

no test coverage detected