Bubble

../_images/bubble-preview.png

Widget description

The Bubble is a widget to show text similar to how speech is represented in comics.

The bubble widget contains 5 important visual elements:

  • The frame is a rectangle with rounded edjes and an “arrow”.

  • The icon is an image to which the frame’s arrow points to.

  • The label is a text which appears to the right of the icon if the

    corner is top_left or bottom_left and is right aligned to the frame otherwise.

  • The info is a text which appears to the right of the label. Info’s

    font is of a lighter color than label.

  • The content is an evas object that is shown inside the frame.

The position of the arrow, icon, label and info depends on which corner is selected. The four available corners are:

  • top_left - Default
  • top_right
  • bottom_left
  • bottom_right

Layout content parts

  • default - A content of the bubble
  • icon - An icon of the bubble

Layout text parts

  • default - Label of the bubble
  • info - info of the bubble

Emitted signals

  • clicked - This is called when a user has clicked the bubble.
  • focused - When the bubble has received focus. (since 1.8)
  • unfocused - When the bubble has lost focus. (since 1.8)

Enumerations

Bubble arrow positions

efl.elementary.ELM_BUBBLE_POS_TOP_LEFT

Top left position

efl.elementary.ELM_BUBBLE_POS_TOP_RIGHT

Top right position

efl.elementary.ELM_BUBBLE_POS_BOTTOM_LEFT

Bottom left position

efl.elementary.ELM_BUBBLE_POS_BOTTOM_RIGHT

Bottom right position

Inheritance diagram

Inheritance diagram of Bubble

class efl.elementary.Bubble(Object parent, *args, **kwargs)

Bases: efl.elementary.__init__.LayoutClass

Parameters:
  • parent (efl.evas.Object) – The parent object
  • **kwargs – All the remaining keyword arguments are interpreted as properties of the instance
callback_clicked_add(func, *args, **kwargs)

This is called when a user has clicked the bubble.

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

When the bubble has received focus.

New in version 1.8.

callback_focused_del(func)
callback_unfocused_add(func, *args, **kwargs)

When the bubble has lost focus.

New in version 1.8.

callback_unfocused_del(func)
pos

The corner of the bubble

This property reflects the corner of the bubble. The corner will be used to determine where the arrow in the frame points to and where label, icon and info are shown.

Type:Bubble arrow positions
pos_get()
pos_set(pos)