From 468673cd78ca155bd1a650238a36fbf5770bdb0a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 2 Jan 2018 15:10:02 -0800 Subject: [PATCH] Fix BackgroundStyle settings for HyperTreeList --- wx/lib/agw/hypertreelist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wx/lib/agw/hypertreelist.py b/wx/lib/agw/hypertreelist.py index 9cf743c6..80011944 100644 --- a/wx/lib/agw/hypertreelist.py +++ b/wx/lib/agw/hypertreelist.py @@ -643,7 +643,7 @@ class TreeListHeaderWindow(wx.Window): self.Bind(wx.EVT_MOUSE_EVENTS, self.OnMouse) self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus) - self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) + self.SetBackgroundStyle(wx.BG_STYLE_PAINT) def SetBuffered(self, buffered): @@ -2108,7 +2108,7 @@ class TreeListMainWindow(CustomTreeCtrl): # Sets the focus to ourselves: this is useful if you have items # with associated widgets. self.SetFocus() - self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) + self.SetBackgroundStyle(wx.BG_STYLE_ERASE) def SetBuffered(self, buffered): @@ -2122,9 +2122,9 @@ class TreeListMainWindow(CustomTreeCtrl): self._buffered = buffered if buffered: - self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) + self.SetBackgroundStyle(wx.BG_STYLE_PAINT) else: - self.SetBackgroundStyle(wx.BG_STYLE_SYSTEM) + self.SetBackgroundStyle(wx.BG_STYLE_ERASE) def IsVirtual(self):