[PySide] self.SelectionMode() return

Frank Rueter | OHUfx frank at ohufx.com
Thu Aug 18 09:25:45 CEST 2016


Same here. My IDE auto completed to upper case as well. Never had that 
with anything else, so I don't think it's the IDE's fault.

On 18/08/16 4:53 PM, oislone wrote:
>
>
>> SelectionMode is an enum. You are constructing a new instance of that
>> enum with the default value (0), which corresponds to NoSelection. There
>> is no "current SelectionMode", because SelectionMode *is a type*.
>>
>> What you *want* to do is query the selectionMode of your item view. Note
>> the lowercase initial 's'.
>>
>> In general, methods *always start with a lower case letter* (in Qt and
>> PySide, anyway). Types start with upper case letters.
>>
>
> Yse.  I am a fool. change to selectionMode() is right return.
> i use too much IDE Auto completion.
> THANK YOU.
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside




More information about the PySide mailing list