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)
| 364 | |
| 365 | |
| 366 | def 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 | |
| 381 | class _QueryString(_QueryDialog): |