Esempio n. 1
0
	def on_enter(self, x, y):
		self.Parent.current_target = self, self.ScreenRect, 5
		if self.Parent.tooltip.target == self:
			return

		href = "passage_tag:%d:%d" % (self._passage_list.get_id(), self._passage_entry.get_id())
		protocol_handler.on_hover(self.Parent, href, None, x, y)
Esempio n. 2
0
    def on_enter(self, x, y):
        self.Parent.current_target = self, self.ScreenRect, 5
        if self.Parent.tooltip.target == self:
            return

        href = "passage_tag:%d:%d" % (self._passage_list.get_id(),
                                      self._passage_entry.get_id())
        protocol_handler.on_hover(self.Parent, href, None, x, y)
Esempio n. 3
0
	def on_enter(self, x, y):
		self.Parent.current_target = self, self.ScreenRect, 1

		if self.Parent.tooltip.target == self:
			return

		# print self.internal_text
		protocol_handler.on_hover(self.Parent, 
			"headings:%s" % self.internal_text, None, x, y)
Esempio n. 4
0
    def on_enter(self, x, y):
        self.Parent.current_target = self, self.ScreenRect, 1

        if self.Parent.tooltip.target == self:
            return

        # print self.internal_text
        protocol_handler.on_hover(self.Parent,
                                  "headings:%s" % self.internal_text, None, x,
                                  y)
Esempio n. 5
0
    def MouseOverEvent(self, event):
        event.Skip()
        self.current_target = None

        element = event.GetTargetNode()
        href = event.GetHref()
        if not href or not self.handle_links:
            return

        if guiconfig.mainfrm.lost_focus: return

        x, y = wx.GetMousePosition()
        self.current_target = href, wx.Rect(x, y, 0, 0), 4

        if self.current_target and self.tooltip.target and \
          self.tooltip.target == self.current_target[0]:
            return

        protocol_handler.on_hover(self, href, element, x, y)
Esempio n. 6
0
	def MouseOverEvent(self, event):
		event.Skip()
		self.current_target = None
		
		element = event.GetTargetNode()
		href = event.GetHref()
		if not href or not self.handle_links:
			return


		if guiconfig.mainfrm.lost_focus: return

		x, y = wx.GetMousePosition()
		self.current_target = href, wx.Rect(
			x, y, 0, 0
		), 4

		if self.current_target and self.tooltip.target and \
				self.tooltip.target == self.current_target[0]:
			return 

		
		protocol_handler.on_hover(self, href, element, x, y)