Package horizons :: Package gui :: Package widgets :: Module tooltip :: Class _Tooltip
[hide private]
[frames] | no frames]

Class _Tooltip

source code

Base class for pychan widgets overloaded with tooltip functionality

Instance Methods [hide private]
 
init_tooltip(self) source code
 
__init_gui(self) source code
 
position_tooltip(self, event)
Calculates a nice position for the tooltip.
source code
 
show_tooltip(self) source code
 
_check_hover_alive(self) source code
 
hide_tooltip(self, event=None) source code
Class Variables [hide private]
  CHARS_PER_LINE = 19
  icon_regexp = re.compile(r'\[\[Buildmenu((?: \d+\:\d+)+)\]\]')
Method Details [hide private]

position_tooltip(self, event)

source code 

Calculates a nice position for the tooltip.

Parameters:
  • event - mouse event from fife or tuple screenpoint