graphics/GraphicCommons.py
changeset 358 4eeb0129f5d2
parent 353 f2be2307d666
child 361 62570186dad4
equal deleted inserted replaced
357:e5501b3337db 358:4eeb0129f5d2
   303 class ToolTip(wx.PopupWindow):
   303 class ToolTip(wx.PopupWindow):
   304     
   304     
   305     # Create a rubberband by indicated on which window it must be drawn
   305     # Create a rubberband by indicated on which window it must be drawn
   306     def __init__(self, parent, tip):
   306     def __init__(self, parent, tip):
   307         wx.PopupWindow.__init__(self, parent)
   307         wx.PopupWindow.__init__(self, parent)
       
   308         self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
   308         self.SetTip(tip)
   309         self.SetTip(tip)
   309         
   310         
   310         self.Bind(wx.EVT_PAINT, self.OnPaint)
   311         self.Bind(wx.EVT_PAINT, self.OnPaint)
   311         
   312         
   312     def SetTip(self, tip):
   313     def SetTip(self, tip):