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

Function askfloat

Lib/tkinter/simpledialog.py:366–378  ·  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

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

Callers 1

doitFunction · 0.85

Calls 1

_QueryFloatClass · 0.85

Tested by

no test coverage detected