def SetBackgroundColour(self,color): wx.PyPanel.SetBackgroundColour(self,color) self._drawSashInBackgroundColour = True if wx.NullColour == color: self._drawSashInBackgroundColour = False