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

Function askinteger

Lib/tkinter/simpledialog.py:347–359  ·  view source on GitHub ↗

get an integer from the user Arguments: title -- the dialog title prompt -- the label text **kw -- see SimpleDialog class Return value is an integer

(title, prompt, **kw)

Source from the content-addressed store, hash-verified

345
346
347def askinteger(title, prompt, **kw):
348 '''get an integer from the user
349
350 Arguments:
351
352 title -- the dialog title
353 prompt -- the label text
354 **kw -- see SimpleDialog class
355
356 Return value is an integer
357 '''
358 d = _QueryInteger(title, prompt, **kw)
359 return d.result
360
361
362class _QueryFloat(_QueryDialog):

Callers 4

test_askintegerMethod · 0.90
_asktabwidthMethod · 0.90
doitFunction · 0.85

Calls 1

_QueryIntegerClass · 0.85

Tested by 1

test_askintegerMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…