GtkSource.Hover¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Number of milliseconds to delay before showing assistant |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GtkSource.Hover(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Interactive tooltips.
GtkSourceHover
allows a [class`View`] to provide contextual information. When enabled, if the user hovers over a word in the text editor, a series of registered [iface`HoverProvider`] can populate a [class`HoverDisplay`] with useful information.To enable call [method`View`.get_hover] and add [iface`HoverProvider`] using [method`Hover`.add_provider]. To disable, remove all registered providers with [method`Hover`.remove_provider].
You can change how long to wait to display the interactive tooltip by setting the [property`Hover`:py:data::hover-delay<GtkSource.Hover.props.hover_delay>] property in milliseconds.
- add_provider(provider)¶
- Parameters:
provider (
GtkSource.HoverProvider
) –
- remove_provider(provider)¶
- Parameters:
provider (
GtkSource.HoverProvider
) –