Table Of Contents

Previous topic

calendar_elm Module

Next topic

clock Module

check Module

Widget description

../_images/check-preview.png

The check widget allows for toggling a value between true and false.

Check objects are a lot like radio objects in layout and functionality, except they do not work as a group, but independently, and only toggle the value of a boolean state between false and true.

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

  • changed - This is called whenever the user changes the state of the check objects.
  • focused - When the check has received focus. (since 1.8)
  • unfocused - When the check has lost focus. (since 1.8)

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

  • “icon” - An icon of the check

Default text parts of the check widget that you can use for are:

  • “default” - A label of the check
  • “on” - On state label of the check
  • “off” - Off state label of the check
class efl.elementary.check.Check

Bases: efl.elementary.layout_class.LayoutClass

This is the class that actually implements the widget.

callback_changed_add()

This is called whenever the user changes the state of the check objects.

callback_focused_add()

When the check has received focus.

New in version 1.8.

callback_unfocused_add()

When the check has lost focus.

New in version 1.8.

state

The of/off state of the check object

This property reflects the state of the check. Setting it doesn’t cause the “changed” signal to be emitted.

Type :bool