<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_end_validation(self, event):
 """ Switch back from validation mode to main Pmag GUI mode. Hide validation frame and show main frame. """

        self.Enable()
        self.Show()
        self.magic_gui_frame.Destroy()