controls/CustomToolTip.py
changeset 1170 074e46cdedbc
parent 1169 53e4a2b775a7
child 1172 dff0a4e40808
equal deleted inserted replaced
1169:53e4a2b775a7 1170:074e46cdedbc
   114             self.Tip = tip.splitlines()
   114             self.Tip = tip.splitlines()
   115         
   115         
   116         # Prevent to call wx method in non-wx threads
   116         # Prevent to call wx method in non-wx threads
   117         wx.CallAfter(self.RefreshTip)
   117         wx.CallAfter(self.RefreshTip)
   118     
   118     
   119     def MoveToolTip(self, pos):
   119     def SetToolTipPosition(self, pos):
   120         """
   120         """
   121         Move tool tip
   121         Set tool tip position
   122         @param pos: New tool tip position
   122         @param pos: New tool tip position
   123         """
   123         """
   124         # Get screen size to prevent tool tip to go out of the screen
   124         # Get screen size to prevent tool tip to go out of the screen
   125         screen_width, screen_height = wx.GetDisplaySize()
   125         screen_width, screen_height = wx.GetDisplaySize()
   126         
   126