On Wed, Apr 12, 2017 at 3:57 AM nguyen vuducthuy <[email protected]>
wrote:

> Hi there,
>
> I try to create an character picker that when i pressed button i select an
> object in the scene and it will keep highlight until i deselect that
> object. This really help me know what i'm selecting.
> Thank for your help!
>

Sound like you want to make the button checkable:
http://doc.qt.io/qt-4.8/qabstractbutton.html#checkable-prop

Then you need to wire up a Maya callback so that the deselection can update
the checked state on the button.

Justin


> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/cc0ae6f1-a251-4fb3-b063-fba31a54f8b3%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/cc0ae6f1-a251-4fb3-b063-fba31a54f8b3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA16A21pVeQcv8RcWZm8OnMpm5R3evpW%2BpNXHRHQ%3DG%3DZPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to