Ask for a filename to save as, and returned the opened file
(mode = "w", **options)
| 429 | |
| 430 | |
| 431 | def asksaveasfile(mode = "w", **options): |
| 432 | "Ask for a filename to save as, and returned the opened file" |
| 433 | |
| 434 | filename = SaveAs(**options).show() |
| 435 | if filename: |
| 436 | return open(filename, mode) |
| 437 | return None |
| 438 | |
| 439 | |
| 440 | def askdirectory (**options): |