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

Class _QueryString

Lib/tkinter/simpledialog.py:384–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

askstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…