package stk

  1. Overview
  2. Docs

A group is used to share a state among several checkbuttons, so they act as radio buttons (only one can be active at the same time).

inherit Stk.Object.o
method add : Stk.Widget.widget -> unit

Adds a widget to the group. The widget becomes active if it is the first in the group.

method remove : Stk.Widget.widget -> unit

Removes a widget to the group. If the widget was active, the first of the remaining widgets become active.

method set_active : Stk.Widget.widget -> unit

Sets the active widget.

method active_element : Stk.Widget.PWidget.t
method wdata : Stk__Widget.wdata option

Gets the Widget.wdata associated to the active widget, if any.

OCaml

Innovation. Community. Security.