def coerce_button ( self, action ):
        if isinstance(action, basestring):
            return Action( name   = action,
                           action = '?'[ (not action in SystemButtons): ] )
        return action

    #---------------------------------------------------------------------------
    #  Creates a user specified button:
    #---------------------------------------------------------------------------
Coerces a string to an Action if necessary.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/ui_base.py/BaseDialog.coerce_button