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

Method configGUI

Lib/turtledemo/__main__.py:279–291  ·  view source on GitHub ↗
(self, start, stop, clear, txt="", color="blue")

Source from the content-addressed store, hash-verified

277 return self.increase_size()
278
279 def configGUI(self, start, stop, clear, txt="", color="blue"):
280 if darwin: # Leave Mac button colors alone - #44254.
281 self.start_btn.config(state=start)
282 self.stop_btn.config(state=stop)
283 self.clear_btn.config(state=clear)
284 else:
285 self.start_btn.config(state=start,
286 bg="#d00" if start == NORMAL else "#fca")
287 self.stop_btn.config(state=stop,
288 bg="#d00" if stop == NORMAL else "#fca")
289 self.clear_btn.config(state=clear,
290 bg="#d00" if clear == NORMAL else "#fca")
291 self.output_lbl.config(text=txt, fg=color)
292
293 def makeLoadDemoMenu(self, master):
294 menu = Menu(master, tearoff=1) # TJR: leave this one.

Callers 5

__init__Method · 0.95
loadfileMethod · 0.95
startDemoMethod · 0.95
clearCanvasMethod · 0.95
stopItMethod · 0.95

Calls 1

configMethod · 0.45

Tested by

no test coverage detected