def _OnSave(self,typename="Csv",sep=","): dialog=wx.FileDialog(self,typename,style=wx.FD_SAVE) if dialog.ShowModal()==wx.ID_OK: self.file=dialog.GetPath() self.save_tab(self.file, sep) dialog.Destroy()