A ctxpopup is a widget that, when shown, pops up a list of items. It automatically chooses an area inside its parent object’s view to optimally fit into it. In the default theme, it will also point an arrow to it’s top left position at the time one shows it. Ctxpopup items have a label and/or an icon. It is intended for a small number of items (hence the use of list, not genlist).
Note
Ctxpopup is a specialization of Hover
.
dismissed
- This is called when 1. the outside of ctxpopup was clicked
or 2. its parent area is changed or 3. the language is changed and also when
4. the parent object is resized due to the window rotation. Then ctxpopup is
dismissed.
geometry,update
- The geometry has changed (since 1.17)
default
- A content of the ctxpopup
icon
- An icon in the title area
default
- Title label in the title area
efl.elementary.
ELM_CTXPOPUP_DIRECTION_DOWN
¶Arrow is pointing down
efl.elementary.
ELM_CTXPOPUP_DIRECTION_RIGHT
¶Arrow is pointing right
efl.elementary.
ELM_CTXPOPUP_DIRECTION_LEFT
¶Arrow is pointing left
efl.elementary.
ELM_CTXPOPUP_DIRECTION_UP
¶Arrow is pointing up
efl.elementary.
ELM_CTXPOPUP_DIRECTION_UNKNOWN
¶Arrow direction is unknown
efl.elementary.
Ctxpopup
(Object parent, *args, **kwargs)¶Changed in version 1.8: Inherits from LayoutClass
parent (efl.evas.Object
) – The parent object
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
efl.elementary.
CtxpopupItem
(label=None, Object icon=None, callback=None, cb_data=None, *args, **kargs)¶Warning
Ctxpopup can’t hold both an item list and a content at the same time. When an item is added, any previous content will be removed.
label (string) – The Label of the new item
icon (efl.evas.Object
) – Icon to be set on new item
callback (callable) – Convenience function called when item selected
cb_data – User data for the callback function
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance