def __init__(self, choice, id=wx.ID_ANY): wx.PyCommandEvent.__init__(self, id=id, eventType=wxEVT_PIEMENU_SELECT) self.choice = choice