From 23309a5da6c8bee37d9d10878c66c55421b73ad4 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Tue, 7 Jul 2015 13:22:59 -0400 Subject: [PATCH] Remove unneeded code that created a bitmap for checkboxes --- gui/builtinViewColumns/state.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gui/builtinViewColumns/state.py b/gui/builtinViewColumns/state.py index a0e8258ee..0925d2f2d 100644 --- a/gui/builtinViewColumns/state.py +++ b/gui/builtinViewColumns/state.py @@ -31,15 +31,6 @@ class State(ViewColumn): self.size = 16 self.maxsize = self.size self.mask = wx.LIST_MASK_IMAGE - for name, state in (("checked", wx.CONTROL_CHECKED), ("unchecked", 0)): - bitmap = wx.EmptyBitmap(16, 16) - dc = wx.MemoryDC() - dc.SelectObject(bitmap) - dc.SetBackground(wx.TheBrushList.FindOrCreateBrush(fittingView.GetBackgroundColour(), wx.SOLID)) - dc.Clear() - wx.RendererNative.Get().DrawCheckBox(fittingView, dc, wx.Rect(0, 0, 16, 16), state) - dc.Destroy() - setattr(self, "%sId" % name, fittingView.imageList.Add(bitmap)) def getText(self, mod): return ""