gui/tools/designer.py
def update(self):
        "Adjust facade with the dimensions of the original object (and repaint)"
        x, y = self.obj.wx_obj.GetPosition()
        w, h = self.obj.wx_obj.GetSize()
        self.Hide()
        self.Move((x, y))
        self.SetSize((w, h))
        # allow original control to repaint before taking the new snapshot image:
        wx.CallLater(200, self.refresh)
def update(self):
        "Adjust facade with the dimensions of the original object (and repaint)"
        x, y = self.obj.wx_obj.GetPosition()
        w, h = self.obj.wx_obj.GetSize()
        self.Hide()
        self.Move((x, y))
        self.SetSize((w, h))
        # allow original control to repaint before taking the new snapshot image:
        wx.CallLater(200, self.refresh)
Adjust facade with the dimensions of the original object (and repaint)