<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def done(self, result):

 """save the geometry before dialog is close to restore it later"""

        self._geometry = self.geometry()
        QtWidgets.QDialog.done(self, result)