public event cancelled as ActionEvent
Emitted when the user cancels with the button, Escape key, or close icon.
chooser.cancelled += lambda(event as ActionEvent): print("Cancelled")