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

Class _QueryString

Lib/tkinter/simpledialog.py:381–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380
381class _QueryString(_QueryDialog):
382 def __init__(self, *args, **kw):
383 if "show" in kw:
384 self.__show = kw["show"]
385 del kw["show"]
386 else:
387 self.__show = None
388 _QueryDialog.__init__(self, *args, **kw)
389
390 def body(self, master):
391 entry = _QueryDialog.body(self, master)
392 if self.__show is not None:
393 entry.configure(show=self.__show)
394 return entry
395
396 def getresult(self):
397 return self.entry.get()
398
399
400def askstring(title, prompt, **kw):

Callers 1

askstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected