items
property as a list.ItemGroups implement the observer pattern, so are models and can have observers listen for changes
ItemGroups observe themselves to update the user interface on model changes. One can add other observers if desired.
See the init
method for an example.
If a method model_value_changed
is defined, then it will be called with the ItemGroup instance being
in whenever a property of the model has a new value. The handlers property_NAME_value_changed
is called
when the main value in item NAME is changed. (An item can have several properties, one of which is the main one.)
ItemGroups have a make_gui
method to make a view of the model. The layout of this GUI can be
specified through its gui_layout
argument, or by default have a simple table layout. ItemGroup instances
are meant to be embedded into a GUI, so the cont
argument is needed to pass in the desired container.