beremiz

Parents aa24cf3b7009
Children 7f9a9c47a317
Fixed bug when closing Beremiz and grid editor is shown on Windows
--- 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