# HG changeset patch # User Laurent Bessard # Date 1361961221 -3600 # Node ID bf896711921c8453883b851732d229d6178ffdbd # Parent aa24cf3b70095bd2d6e1703268b2aa9108604b62 Fixed bug when closing Beremiz and grid editor is shown on Windows diff -r aa24cf3b7009 -r bf896711921c controls/CustomGrid.py --- a/controls/CustomGrid.py Wed Feb 27 11:25:39 2013 +0100 +++ b/controls/CustomGrid.py Wed Feb 27 11:33:41 2013 +0100 @@ -47,6 +47,10 @@ self.Bind(wx.grid.EVT_GRID_EDITOR_HIDDEN, self.OnEditorHidden) self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) + def SetFocus(self): + if self: + wx.grid.Grid.SetFocus(self) + def SetDefaultValue(self, default_value): self.DefaultValue = default_value