Overview of Item Types
Groups automatically resize themselves to contain all of their members - thus adding, removing, or repositioning a member implicitly changes the size of the group. See the pad addgroupmember
and removegroupmember
commands and the -member itemconfigure option below for setting group membership, and the getgroup
command for testing group membership.
When an event hits a group, it normally passes through the group object to its members. However, it is possible to configure a group object so that it grabs the events and does not pass them through. See the -divisible flag.
Groups are created with widget commands of the following form:
pathName create group [option value option value ...]There may be any number of option-value pairs, each of which sets one of the configuration options for the item. These same option-value pairs may be used in itemconfigure widget commands to change the item's configuration. The following options are supported for groups:
-divisible
[16] True if events go through a group to its members
-members [38]
The list of members of a group
Copyright Computer Science Department, The University of New Mexico