def __repr__(self):
    """String representation of the Button object."""
    return str({'name': self.name, 'num': self.number,
               'type': self._button_type, 'direction': self._direction})
def __repr__ ( self ) : return str ( { 'name' : self . name , 'num' : self . number , 'type' : self . _button_type , 'direction' : self . _direction } )
String representation of the Button object.