[PyQt] QtProperty docstrings

Phil Thompson phil at riverbankcomputing.com
Mon Oct 26 09:15:02 GMT 2015


On 26 Oct 2015, at 8:43 a.m., Javier Santacruz López-Cepero <jsl at taric.es> wrote:
> 
> Hi Phil,
> 
> 
> Thank you for the fix! :)
> 
> However, I've got to install PyQt 5.5.1 and got the following behaviour; When repeating my previous example, I get indeed a docstring, but its always the same and it comes from the standard docstring `str.__doc__`.

...which is what you would expect. In your previous example you were printing the docstring of the property, ie. Widget.prop.__doc__. In this example you are printing the docstring of the *value* of the property, ie. w.prop.__doc__ which is a str.

Phil


More information about the PyQt mailing list