Check

../_images/check-preview.png

Widget description

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.

Emitted signals

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

Layout content parts

  • icon - An icon of the check

Layout text parts

  • default - A label of the check

  • on - On state label of the check

  • off - Off state label of the check

Inheritance diagram

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

Bases: efl.elementary.__init__.LayoutClass

This is the class that actually implements the widget.

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

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

callback_changed_add(func, *args, **kwargs)

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

callback_changed_del(func)
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

state_get()
state_set(value)