def OnPopupMenu(self, event: wx.MenuEvent): id = event.GetId() if id == self.RESET_LEGEND: self.reset = True self.RepaintLegend()
def on_file_history(self, event: wx.MenuEvent): self.load(self.app.frame.file_history.GetHistoryFile(event.GetId() - wx.ID_FILE1))