Trees | Index | Help |
---|
Module gwy :: Class SensitivityGroup |
|
Method Summary | |
---|---|
Creates a new flag-based widget sensitivity group. | |
Adds a widget to flag sensitivity group. | |
Gets the current state of a widget flag sensitivity group. | |
Gets sensitivity flags of a widget in a flag sensitivity group. | |
Removes a widget from flag sensitivity group. | |
Sets the state of a widget flag sensitivity group. | |
Sets the flag mask of a widget in a flag sensitivity group. |
Method Details |
---|
__init__()
Creates a new flag-based widget sensitivity group.
|
add_widget(widget, mask)Adds a widget to flag sensitivity group. Widget sensitivity should not be set manually after the addition as the result is likely to be a fight over sensitivity setting. The added widget takes a reference onsensgroup .
So the group is not destroyed when they are any widgets in, generally,
you can release your initial reference after adding widgets to the
group.
|
get_state()Gets the current state of a widget flag sensitivity group.
|
get_widget_mask(widget)Gets sensitivity flags of a widget in a flag sensitivity group.
|
release_widget(widget)Removes a widget from flag sensitivity group.
|
set_state(affected_mask, state)Sets the state of a widget flag sensitivity group. Widget sensitivity states are then updated accordingly. More precisely, widget will be made sensitive when all bits in itsmask are set in current
sensgroup state, insensitive otherwise. This means
when mask is zero, widget will be always
sensitive.
|
set_widget_mask(widget, mask)Sets the flag mask of a widget in a flag sensitivity group.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 30 04:01:41 2008 | http://epydoc.sf.net |