def find_meta_property(obj, name):
 meta = obj.metaObject()
 index = meta.indexOfProperty(name)
 if (index == (-1)):
  raise AttributeError(('%s does no have a property named %r.' % (meta.className(), name)))
 return meta.property(index)

def find_meta_property ( obj , name ) : meta = obj . metaObject ( ) index = meta . indexOfProperty ( name ) if ( index == ( - 1 ) ) : raise AttributeError ( ( '%s does no have a property named %r.' % ( meta . className ( ) , name ) ) ) return meta . property ( index )
return a named qmetaproperty of a qobject instance obj .