A Multibuttonentry is a widget to allow a user enter text and manage it as a number of buttons. Each text button is inserted by pressing the “return” key. If there is no space in the current row, a new button is added to the next row. When a text button is pressed, it will become focused. Backspace removes the focus. When the Multibuttonentry loses focus items longer than one line are shrunk to one line.
Typical use case of multibuttonentry is, composing emails/messages to a group of addresses, each of which is an item that can be clicked for further actions.
Bases: efl.elementary.__init__.Object
This is the class that actually implements the widget.
| Parameters: |
|
|---|
New in version 1.14.
New in version 1.14.
Remove all items in the multibuttonentry
Whether the multibuttonentry is to be editable or not.
| Type: | bool |
|---|
New in version 1.8.
The Entry object child of the multibuttonentry.
| Type: | Entry |
|---|
Control the multibuttonentry to expanded state.
In expanded state the entry widget expands to accommodate all items. Otherwise a single line of items will be displayed with a counter for items that don’t fit the line.
See also
| Type: | bool |
|---|
Append an item filter function for items inserted in the Multibuttonentry
Append the given callback to the list. This function will be called when a new text item is inserted into the Multibuttonentry, with the text to be inserted as a parameter.
If the item is wanted the function should return True, else return False. Returning False will also prevent any subsequent filters from being called.
Callback signature:
func(obj, text, *args, **kwargs) -> bool
Prepend a filter function for items inserted in the Multibuttonentry
Prepend the given callback to the list. See filter_append() for more information
Remove a filter from the list
Removes the given callback from the filter list. See filter_append() for more information.
New in version 1.17.
The first item in the multibuttonentry
| Type: | MultiButtonEntryItem |
|---|
Set a function to format the string for the counter
Sets a function to format the string that will be used to display a counter for items that don’t fit the line when the widget is not in expanded state.
| Parameters: | func (callable) – The actual format function. signature: (int count, args, kwargs)->string |
|---|
Note
Setting func to None will restore the default format.
New in version 1.9.
Append a new item to the multibuttonentry
| Parameters: |
|
|---|---|
| Returns: |
Add a new item to the multibuttonentry after the indicated object
| Parameters: |
|
|---|---|
| Returns: |
Add a new item to the multibuttonentry before the indicated object
| Parameters: |
|
|---|---|
| Returns: |
Prepend a new item to the multibuttonentry
| Parameters: |
|
|---|---|
| Returns: |
List of items in the multibuttonentry
| Type: | list |
|---|
The last item in the multibuttonentry
| Type: | MultiButtonEntryItem |
|---|
The selected item in the multibuttonentry
| Type: | MultiButtonEntryItem |
|---|
Bases: efl.elementary.__init__.ObjectItem
An item for the MultiButtonEntry widget.
Get the next item in the multibuttonentry
| Type: | MultiButtonEntryItem |
|---|
Get the previous item in the multibuttonentry
| Type: | MultiButtonEntryItem |
|---|
Control the selected state of an item
| Type: | bool |
|---|