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

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

Get the "active" button from a group of radio buttons.

The pairs parameter is a tuple of (widget name, return value) pairs.
If no widget is active, an assertion will fail.

Definition at line 100 of file dialog_base.py.

00100                                :
        '''Get the "active" button from a group of radio buttons.

        The pairs parameter is a tuple of (widget name, return value) pairs.
        If no widget is active, an assertion will fail.

        '''
        for (name, value) in pairs:
            if getattr(self, name).get_active():
                return value
        assert False, 'No widget is active'

    def _setup_browse_button(self, button, entry, title, action):


Generated by  Doxygen 1.6.0   Back to index