'Delegate unimplemented command calls to active layout.
For ``cmd_``-methods that don\'t exist on the Delegate subclass, this
looks for an implementation on the active layout.'

def __getattr__(self, name):

    if name.startswith('cmd_'):
        return getattr(self._get_active_layout(), name)
    return super(Delegate, self).__getattr__(name)
