MCPcopy Index your code
hub / github.com/RustPython/RustPython / body

Method body

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

LabelClass · 0.70
EntryClass · 0.70
insertMethod · 0.45

Tested by

no test coverage detected