def METHOD_NAME(self, *args, **kwargs):
    self.context.close(self.name)
    if self.window_save:
        x, y = self.GetPosition()
        self.window_context.setting(int, "x", x)
        self.window_context.setting(int, "y", y)
        self.SetPosition((self.window_context.x, self.window_context.y))
        display = wx.Display.GetFromWindow(self)
        if display == wx.NOT_FOUND:
            self.SetPosition((x, y))
    self.Show()
    self.window_open()