get a string from the user Arguments: title -- the dialog title prompt -- the label text **kw -- see SimpleDialog class Return value is a string
(title, prompt, **kw)
| 398 | |
| 399 | |
| 400 | def askstring(title, prompt, **kw): |
| 401 | '''get a string from the user |
| 402 | |
| 403 | Arguments: |
| 404 | |
| 405 | title -- the dialog title |
| 406 | prompt -- the label text |
| 407 | **kw -- see SimpleDialog class |
| 408 | |
| 409 | Return value is a string |
| 410 | ''' |
| 411 | d = _QueryString(title, prompt, **kw) |
| 412 | return d.result |
| 413 | |
| 414 | |
| 415 | if __name__ == '__main__': |