<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prev_window(self, widget, data=None):
 """ Function returns to Main Window """

        self.path_window.hide()
        self.parent.open_window(widget, self.data)