'Process the resize event.'

def processSizeEvent(self, event):

    if self.IsFrozen():
        event.Skip()
        return
    if (((wx.VERSION > (2, 9)) and self.canvas.IsShownOnScreen()) or self.canvas.GetContext()):
        self.canvas.SetCurrent(self.context)
        self.OnReshape()
        self.Refresh(False)
        timer = wx.CallLater(100, self.Refresh)
        timer.Start()
    event.Skip()
