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

Function askfloat

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

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

(title, prompt, **kw)

Source from the content-addressed store, hash-verified

367
368
369def askfloat(title, prompt, **kw):
370 '''get a float from the user
371
372 Arguments:
373
374 title -- the dialog title
375 prompt -- the label text
376 **kw -- see SimpleDialog class
377
378 Return value is a float
379 '''
380 d = _QueryFloat(title, prompt, **kw)
381 return d.result
382
383
384class _QueryString(_QueryDialog):

Callers 1

doitFunction · 0.85

Calls 1

_QueryFloatClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…