MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / askinteger

Function askinteger

tools/python-3.11.9-amd64/Lib/tkinter/simpledialog.py:344–356  ·  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

342
343
344def askinteger(title, prompt, **kw):
345 '''get an integer from the user
346
347 Arguments:
348
349 title -- the dialog title
350 prompt -- the label text
351 **kw -- see SimpleDialog class
352
353 Return value is an integer
354 '''
355 d = _QueryInteger(title, prompt, **kw)
356 return d.result
357
358
359class _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