Class k.u.h.HyperLink(PropertyObject, gtk.EventBox):

Part of kiwi.ui.hyperlink
Undocumented
Function__init__
Create a new hyperlink.
Functionget_text
Return the hyperlink text.
Functionset_text
Set the text of the hyperlink.
Functionset_menu
Set the menu to be used for popups.
Functionhas_menu
Return whether the widget has a menu set.
Functionpopup
Popup the menu and emit the popup signal.
Functionclicked
Fire a clicked signal.
Functionget_label
Get the internally stored widget.
Function_update_look
Update the look of the hyperlink depending on state.
Function_build_markup
Build a marked up string depending on parameters.
Function_on_button_press_event
Called on mouse down.
Function_on_button_release_event
Called on mouse up.
Function_on_hover_changed
Called when the mouse pinter enters or leaves the widget.
Function_on_notify
Called on property notification.
Function_on_map_event
Called on initially mapping the widget.
def __init__(self, text=None, menu=None):
Create a new hyperlink.
def get_text(self):
Return the hyperlink text.
def set_text(self, text):
Set the text of the hyperlink.
def set_menu(self, menu):
Set the menu to be used for popups.
def has_menu(self):
Return whether the widget has a menu set.
def popup(self, menu=None, button=3, etime=0L):
Popup the menu and emit the popup signal.
def clicked(self):
Fire a clicked signal.
def get_label(self):
Get the internally stored widget.
def _update_look(self):
Update the look of the hyperlink depending on state.
def _build_markup(self, text, color, underline, bold):
Build a marked up string depending on parameters.
def _on_button_press_event(self, eventbox, event):

Called on mouse down.

Behaves in 2 ways.
  1. if left-button, register the start of a click and grab the mouse.
  1. if right-button, emit a right-clicked signal +/- popup the menu.
def _on_button_release_event(self, eventbox, event):

Called on mouse up.

If the left-button is released and the widget was earlier activated by a mouse down event a clicked signal is fired.
def _on_hover_changed(self, eb, event, hover):
Called when the mouse pinter enters or leaves the widget.
def _on_notify(self, eventbox, param):

Called on property notification.

Ensure that the look is up to date with the properties
def _on_map_event(self, eventbox, event):

Called on initially mapping the widget.

Used here to set the cursor type.