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

Method body

Lib/tkinter/simpledialog.py:292–304  ·  view source on GitHub ↗
(self, master)

Source from the content-addressed store, hash-verified

290 Dialog.destroy(self)
291
292 def body(self, master):
293
294 w = Label(master, text=self.prompt, justify=LEFT)
295 w.grid(row=0, padx=5, sticky=W)
296
297 self.entry = Entry(master, name="entry")
298 self.entry.grid(row=1, padx=5, sticky=W+E)
299
300 if self.initialvalue is not None:
301 self.entry.insert(0, self.initialvalue)
302 self.entry.select_range(0, END)
303
304 return self.entry
305
306 def validate(self):
307 try:

Callers

nothing calls this directly

Calls 4

LabelClass · 0.90
EntryClass · 0.90
gridMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected