def cancel(self, event=None):
if self.parent != None:<EOL><INDENT>self.parent.focus_set()<EOL><DEDENT>self.destroy()<EOL>
Function called when Cancel-button clicked.

        This method returns focus to parent, and destroys the dialog.