parameters: (self)
docstring: If the window is minimised or maximised, restore it.
docstring_summary: If the window is minimised or maximised, restore it.
docstring_tokens: If the window is minimised or maximised restore it .
function: def AutoRestore(self):
          "If the window is minimised or maximised, restore it."
          p = self.GetWindowPlacement()
          if p[1] == win32con.SW_MINIMIZE or p[1] == win32con.SW_SHOWMINIMIZED:
              self.SetWindowPlacement(p[0], win32con.SW_RESTORE, p[2], p[3], p[4])
function_tokens: def AutoRestore ( self ) : p = self . GetWindowPlacement ( ) if p [ 1 ] == win32con . SW_MINIMIZE or p [ 1 ] == win32con . SW_SHOWMINIMIZED : self . SetWindowPlacement ( p [ 0 ] , win32con . SW_RESTORE , p [ 2 ] , p [ 3 ] , p [ 4 ] )