Fixed bug when closing Beremiz and grid editor is shown on Windows
authorLaurent Bessard
Wed, 27 Feb 2013 11:33:41 +0100
changeset 950 bf896711921c
parent 949 aa24cf3b7009
child 951 7f9a9c47a317
Fixed bug when closing Beremiz and grid editor is shown on Windows
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