[PySide] self.SelectionMode() return

oislone oislone at ois.idv.tw
Thu Aug 18 06:53:11 CEST 2016



> 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.




More information about the PySide mailing list