()
| 25 | |
| 26 | |
| 27 | def _test(): |
| 28 | d = Dialog(None, {'title': 'File Modified', |
| 29 | 'text': |
| 30 | 'File "Python.h" has been modified' |
| 31 | ' since the last time it was saved.' |
| 32 | ' Do you want to save it before' |
| 33 | ' exiting the application.', |
| 34 | 'bitmap': DIALOG_ICON, |
| 35 | 'default': 0, |
| 36 | 'strings': ('Save File', |
| 37 | 'Discard Changes', |
| 38 | 'Return to Editor')}) |
| 39 | print(d.num) |
| 40 | |
| 41 | |
| 42 | if __name__ == '__main__': |