Пример #1
0
 def OnMessageToolTipTimer(self, event):
     if self.LastMousePos is not None:
         message = self.GetMessageByScreenPos(*self.LastMousePos)
         if message is not None:
             tooltip_pos = self.MessagePanel.ClientToScreen(self.LastMousePos)
             tooltip_pos.x += 10
             tooltip_pos.y += 10
             self.MessageToolTip = CustomToolTip(self.MessagePanel, message.GetFullText(), False)
             self.MessageToolTip.SetFont(self.Font)
             self.MessageToolTip.SetToolTipPosition(tooltip_pos)
             self.MessageToolTip.Show()
     event.Skip()
Пример #2
0
    def OnToolTipTimer(self, event):
        """
        Callback for Tool Tip firing timer Event
        @param event: Tool tip text
        """
        # Get Tool Tip text
        value = self.GetToolTipValue()

        if value is not None and self.ToolTipPos is not None:
            # Create Tool Tip
            self.ToolTip = CustomToolTip(self.Parent, value)
            self.ToolTip.SetToolTipPosition(self.ToolTipPos)
            self.ToolTip.Show()