Table Of Contents

Previous topic

Colorselector

Next topic

Configuration

Combobox

../_images/combobox-preview.png

Widget description

This is a the classic combobox widget, it is the composition of a Button, an Entry, a Genlist and an Hover. Thus you can use all the functionality of the base classes on the Combobox itself.

Available styles

  • default a normal combobox.

Emitted signals

  • dismissed: The combobox hover has been dismissed.
  • expanded: The combobox hover has been expanded.
  • clicked: The combobox button has been clicked.
  • item,selected: An item has been selected (highlighted).
  • item,pressed: An item has been pressed (clicked).
  • filter,done: Item filtering on genlist is completed.

Inheritance diagram

class efl.elementary._Combobox

Bases: efl.elementary.__init__.Object

callback_clicked_add(func, *args, **kwargs)

The combobox button has been clicked

callback_clicked_del(func)
callback_dismissed_add(func, *args, **kwargs)

The combobox hover has been dismissed

callback_dismissed_del(func)
callback_expanded_add(func, *args, **kwargs)

The combobox hover has been expanded

callback_expanded_del(func)
callback_filter_done_add(func, *args, **kwargs)

Item filtering is done

callback_filter_done_del(func)
callback_item_pressed_add(func, *args, **kwargs)

An item has been pressed

callback_item_pressed_del(func)
callback_item_selected_add(func, *args, **kwargs)

An item has been selected

callback_item_selected_del(func)
expanded

Returns whether the combobox is expanded or not.

Type :bool (readonly)
expanded_get()
hover_begin()

This triggers the combobox popup from code, the same as if the user had clicked the button.

hover_end()

This dismisses the combobox popup as if the user had clicked outside the hover.

class efl.elementary.Combobox

Bases: efl.elementary.__init__._Combobox, efl.elementary.__init__.Button, efl.elementary.__init__.Entry, efl.elementary.__init__.Genlist, efl.elementary.__init__.Hover

New in version 1.17.

Combobox(...)

param parent:The parent object
type parent:efl.evas.Object
param **kwargs:All the remaining keyword arguments are interpreted as properties of the instance