Re: Error closing dialog after editing grid
ioprst <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Even easier. Before destroying the grid, you need to reset all editors.
def OnGridDestroy(self, event):
for row in range(self.table.GetNumberRows()):
for col in range(self.table.GetNumberCols()):
self.grid.SetCellEditor(row, col, None)
event.Skip()
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/3290673e-87f0-4f86-8c3d-171d4d4f4851%40googlegroups.com.