equal
deleted
inserted
replaced
104 # Add ... to the end of last line to indicate that tool tip |
104 # Add ... to the end of last line to indicate that tool tip |
105 # text is too long |
105 # text is too long |
106 if len(self.Tip[-1]) < TOOLTIP_MAX_CHARACTERS - 3: |
106 if len(self.Tip[-1]) < TOOLTIP_MAX_CHARACTERS - 3: |
107 self.Tip[-1] += "..." |
107 self.Tip[-1] += "..." |
108 else: |
108 else: |
109 self.Tip[-1] = self.Tip[-1]\ |
109 self.Tip[-1] = self.Tip[-1][:TOOLTIP_MAX_CHARACTERS - 3] + \ |
110 [:TOOLTIP_MAX_CHARACTERS - 3] + "..." |
110 "..." |
111 else: |
111 else: |
112 self.Tip = tip.splitlines() |
112 self.Tip = tip.splitlines() |
113 |
113 |
114 # Prevent to call wx method in non-wx threads |
114 # Prevent to call wx method in non-wx threads |
115 wx.CallAfter(self.RefreshTip) |
115 wx.CallAfter(self.RefreshTip) |