Panel

../_images/panel-preview.png

Widget description

A panel is a type of animated container that contains subobjects.

It can be expanded or contracted by clicking the button on it’s edge.

Emitted signals

  • toggled - Emitted when the panel has been toggled. (since 1.19)

Layout content parts

  • default - A content of the panel

Enumerations

Panel orientation types

efl.elementary.ELM_PANEL_ORIENT_TOP

Panel (dis)appears from the top

efl.elementary.ELM_PANEL_ORIENT_BOTTOM

Panel (dis)appears from the bottom

efl.elementary.ELM_PANEL_ORIENT_LEFT

Panel (dis)appears from the left

efl.elementary.ELM_PANEL_ORIENT_RIGHT

Panel (dis)appears from the right

Inheritance diagram

Inheritance diagram of Panel
class efl.elementary.Panel(Object parent, *args, **kwargs)

Bases: efl.elementary.__init__.LayoutClass

This is the class that actually implements the widget.

Changed in version 1.8: Inherits from LayoutClass.

Parameters
  • parent (efl.evas.Object) – The parent object

  • **kwargs – All the remaining keyword arguments are interpreted as properties of the instance

callback_toggled_add(func, *args, **kwargs)

The panel has been toggled.

New in version 1.19.

callback_toggled_del(func)
hidden

The hidden state of the panel.

Type

bool

hidden_get()
hidden_set(hidden)
orient

The orientation of the panel.

Tells from where the panel will (dis)appear.

This has value ELM_PANEL_ORIENT_LEFT on failure

Type

Panel orientation types

orient_get()
orient_set(orient)
scrollable

The scrollability of the panel.

Type

bool

New in version 1.12.

scrollable_content_size

The size of the scrollable panel.

Type

double

New in version 1.12.

Changed in version 1.19: Property is now also readable

scrollable_content_size_get()
scrollable_content_size_set(ratio)
scrollable_get()
scrollable_set(scrollable)
toggle()

Toggle the hidden state of the panel from code.