def OnConfigEdit(self, event): dlg = ConfigDialog(self, -1, "Configuration", self.dm) if dlg.ShowModal() == wx.ID_OK: self.dm.SaveToConfig() pass