Logo Search packages:      
Sourcecode: audit version File versions  Download package

def dialog_base::DialogBase::_radio_set (   self,
  value,
  pairs 
) [private]

Update the "active" state of several toggle buttons.

The pairs parameter is a tuple of (widget name, expected value) pairs.
Expected value is either a single value, or a tuple of possible values.

Definition at line 86 of file dialog_base.py.

00086                                       :
        '''Update the "active" state of several toggle buttons.

        The pairs parameter is a tuple of (widget name, expected value) pairs.
        Expected value is either a single value, or a tuple of possible values.

        '''
        for (name, expected) in pairs:
            if type(expected) == tuple:
                active = value in expected
            else:
                active = value == expected
            getattr(self, name).set_active(active)

    def _radio_get(self, pairs):


Generated by  Doxygen 1.6.0   Back to index