def post_link(self, link): """[summary] Arguments: link {[type]} -- [description] """ event = popups.Event(self, popups.EVT_LINK) event.link = link wx.PostEvent(self, event)
def on_leave(self, event): """[summary] Arguments: event {[type]} -- [description] """ event.Skip() self.hover_count -= 1 if self.hover_count == 0: wx.PostEvent(self, popups.Event(self, popups.EVT_POPUP_LEAVE))
def on_enter(self, event): """[summary] Arguments: event {[type]} -- [description] """ event.Skip() self.hover_count += 1 if self.hover_count == 1: wx.PostEvent(self, popups.Event(self, popups.EVT_POPUP_ENTER))
def on_leave(self, event): event.Skip() self.hover_count -= 1 if self.hover_count == 0: wx.PostEvent(self, popups.Event(self, popups.EVT_POPUP_LEAVE))
def on_enter(self, event): event.Skip() self.hover_count += 1 if self.hover_count == 1: wx.PostEvent(self, popups.Event(self, popups.EVT_POPUP_ENTER))
def post_link(self, link): event = popups.Event(self, popups.EVT_LINK) event.link = link wx.PostEvent(self, event)