From e41fd89a1ec3b842d79fb8622fc0a702308857fd Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 13 Mar 2020 11:53:56 -0700 Subject: [PATCH] Fix minor issue in GridCustEditor demo --- demo/GridCustEditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/GridCustEditor.py b/demo/GridCustEditor.py index 070554c3..c6c41b32 100644 --- a/demo/GridCustEditor.py +++ b/demo/GridCustEditor.py @@ -53,14 +53,14 @@ class MyCellEditor(gridlib.GridCellEditor): super(MyCellEditor, self).Show(show, attr) - def PaintBackground(self, rect, attr): + def PaintBackground(self, dc, rect, attr): """ Draws the part of the cell not occupied by the edit control. The base class version just fills it with background colour from the attribute. In this class the edit control fills the whole cell so don't do anything at all in order to reduce flicker. """ - self.log.write("MyCellEditor: PaintBackground\n") + self.log.write("MyCellEditor: PaintBackground {}\n".format(rect)) def BeginEdit(self, row, col, grid):