A hoversel is a button that pops up a list of items (automatically choosing the direction to display) that have a label and, optionally, an icon to select from.
It is a convenience widget to avoid the need to do all the piecing together yourself. It is intended for a small number of items in the hoversel menu (no more than 8), though is capable of many more.
Bases: efl.elementary.__init__.Button
This is the class that actually implements the widget.
Parameters: |
|
---|
The user clicked the hoversel button and popped up the sel.
The hover is dismissed.
The hover is expanded.
New in version 1.9.
When the hoversel item has received focus.
New in version 1.10.
When the hoversel item has lost focus.
New in version 1.10.
An item in the hoversel list is selected. event_info is the item.
This will remove all the children items from the hoversel.
Warning
Should not be called while the hoversel is active; use expanded to check first.
See also
delete()
Returns whether the hoversel is expanded.
Type: | bool |
---|
Whether the hoversel is set to expand horizontally.
Note
The initial button will display horizontally regardless of this setting.
Type: | bool |
---|
This triggers the hoversel popup from code, the same as if the user had clicked the button.
This dismisses the hoversel popup as if the user had clicked outside the hover.
The Hover parent.
The hover parent object, the area that will be darkened when the hoversel is clicked. Should probably be the window that the hoversel is in. See Hover objects for more information.
Type: | Object |
---|
Get the list of items within the given hoversel.
See also
Type: | tuple of HoverselItem‘s |
---|
Bases: efl.elementary.__init__.ObjectItem
An item for the Hoversel widget.
For more information on what icon_file and icon_type are, see Icon.
Parameters: |
|
---|
Add an item to the hoversel button
This adds an item to the hoversel to show when it is clicked.
Note
If you need to use an icon from an edje file then use HoverselItem.icon right after this function.
Returns: | The item added. |
---|---|
Return type: | HoverselItem |
This sets the icon for the given hoversel item.
The icon can be loaded from the standard set, from an image file, or from an edje file.
Type: | (string file, string group, Icon type type) |
---|