kiwi.ui.hyperlink.HyperLink(PropertyObject, gtk.EventBox)
class documentationkiwi.ui.hyperlink
(View In Hierarchy)
Method | __init__ | Create a new hyperlink. |
Method | get_text | Return the hyperlink text. |
Method | set_text | Set the text of the hyperlink. |
Method | set_menu | Set the menu to be used for popups. |
Method | has_menu | Return whether the widget has a menu set. |
Method | popup | Popup the menu and emit the popup signal. |
Method | clicked | Fire a clicked signal. |
Method | get_label | Get the internally stored widget. |
Method | _update_look | Update the look of the hyperlink depending on state. |
Method | _build_markup | Build a marked up string depending on parameters. |
Method | _on_button_press_event | Called on mouse down. |
Method | _on_button_release_event | Called on mouse up. |
Method | _on_hover_changed | Called when the mouse pinter enters or leaves the widget. |
Method | _on_notify | Called on property notification. |
Method | _on_map_event | Called on initially mapping the widget. |
Inherited from PropertyObject:
Class Method | __class_init__ | Undocumented |
Method | __post_init__ | No summary |
Method | get_attribute_names | Undocumented |
Method | is_default_value | Undocumented |
Method | do_set_property | Undocumented |
Method | do_get_property | Undocumented |
Method | _set | Undocumented |
Method | _get | Undocumented |
Create a new hyperlink. @param text: The text of the hyperlink. @type text: str
Set the text of the hyperlink. @param text: The text to set the hyperlink to. @type text: str
Set the menu to be used for popups. @param menu: the gtk.Menu to be used. @type menu: gtk.Menu
Return whether the widget has a menu set. @return: a boolean value indicating whether the internal menu has been set.
Popup the menu and emit the popup signal. @param menu: The gtk.Menu to be popped up. This menu will be used instead of the internally set menu. If this parameter is not passed or None, the internal menu will be used. @type menu: gtk.Menu @param button: An integer representing the button number pressed to cause the popup action. @type button: int @param etime: The time that the popup event was initiated. @type etime: long
Build a marked up string depending on parameters.
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.
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.
Called when the mouse pinter enters or leaves the widget. @param hover: Whether the mouse has entered the widget. @type hover: boolean