code: def OnGridEditorClosed(self, event):
          
  
          try:
              dialect, self.has_header = \
                  self.parent.csvwidgets.get_dialect()
          except TypeError:
              event.Skip()
              return 0
  
          self.fill_cells(dialect, self.has_header, choices=False)
docs: Event handler for end of output type choice