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

Method makeLoadDemoMenu

Lib/turtledemo/__main__.py:293–300  ·  view source on GitHub ↗
(self, master)

Source from the content-addressed store, hash-verified

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.
295
296 for entry in getExampleEntries():
297 def load(entry=entry):
298 self.loadfile(entry)
299 menu.add_command(label=entry, underline=0, command=load)
300 return menu
301
302 def makeFontMenu(self, master):
303 menu = Menu(master, tearoff=0)

Callers 1

__init__Method · 0.95

Calls 3

add_commandMethod · 0.95
MenuClass · 0.85
getExampleEntriesFunction · 0.85

Tested by

no test coverage detected