Table Of Contents

Previous topic

panel Module

Next topic

photo Module

panes Module

Widget description

../_images/panes-preview.png

The panes widget adds a draggable bar between two contents. When dragged this bar will resize contents’ size.

Panes can be displayed vertically or horizontally, and contents size proportion can be customized (homogeneous by default).

This widget emits the following signals, besides the ones sent from LayoutClass:

  • "press" - The panes has been pressed (button wasn’t released yet).
  • "unpressed" - The panes was released after being pressed.
  • "clicked" - The panes has been clicked.
  • "clicked,double" - The panes has been double clicked.

Available styles for it:

  • "default"

Default content parts of the panes widget that you can use are:

  • “left” - A leftside content of the panes
  • “right” - A rightside content of the panes

If panes are displayed vertically, left content will be displayed on top.

class efl.elementary.panes.Panes

Bases: efl.elementary.layout_class.LayoutClass

This is the class that actually implements the widget.

callback_clicked_add()

The panes has been clicked.

callback_clicked_double_add()

The panes has been double clicked.

callback_press_add()

The panes has been pressed (button wasn’t released yet).

callback_unpress_add()

The panes was released after being pressed.

content_left_size

The size proportion of panes widget’s left side.

By default it’s homogeneous, i.e., both sides have the same size.

If something different is required, it can be set with this property. For example, if the left content should be displayed over 75% of the panes size, size should be passed as 0.75. This way, right content will be resized to 25% of panes size.

If displayed vertically, left content is displayed at top, and right content at bottom.

Note

This proportion will change when user drags the panes bar.

Type :float
content_right_size

The size proportion of panes widget’s right side.

By default it’s homogeneous, i.e., both sides have the same size.

If something different is required, it can be set with this property. For example, if the right content should be displayed over 75% of the panes size, size should be passed as 0.75. This way, left content will be resized to 25% of panes size.

If displayed vertically, left content is displayed at top, and right content at bottom.

Note

This proportion will change when user drags the panes bar.

Type :float
fixed

Whether the left and right panes resize homogeneously or not.

By default panes are resized homogeneously.

Type :bool
horizontal

The orientation of a given panes widget.

Use this property to change how your panes is to be disposed: vertically or horizontally.

By default it’s displayed horizontally.

Type :bool