Change wx version detection for Destroy editor on 2.8.12.1.
@@ -122,10 +122,10 @@ class _RobotTableEditor(EditorPanel):
def destroy(self):
self.close()
- if wx.VERSION >= (3, 0, 3, ''): # DEBUG wxPhoenix
- self.DestroyLater()
- else:
+ if wx.VERSION < (3, 0, 3, ''): # DEBUG wxPhoenix
self.Destroy()
+ else:
+ self.DestroyLater()
def _create_header(self, text, readonly=False):
if readonly:
