Process the data entered by the user, for example by storing it in the result attribute. Called after validate() succeeds and just before the dialog is destroyed. The default implementation does nothing; override it to act on or store the result.
tkinter.simpledialog/Dialog.apply
Dialog.apply