PySide unwrapinstance analog

355 views
Skip to first unread message

vux

unread,
Apr 5, 2013, 7:46:50 AM4/5/13
to python_in...@googlegroups.com
In PyQt i had function to get maya-style path of qt control:
def qControlPath( ctl ):
return apiui.MQtUtil.fullName( long(unwrapinstance(ctl)) )

At now i start to use PySide. It does not have sip and unwrapinstance, so how to get fullPath of qt control?

Justin Israel

unread,
Apr 5, 2013, 3:32:50 PM4/5/13
to python_in...@googlegroups.com
The equivalent of sip for PySide is shiboken:

import shiboken
ptr = long(shiboken.getCppPointer(obj)[0])
> --
> 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 python_inside_m...@googlegroups.com.
> To post to this group, send email to python_in...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

vux

unread,
Apr 5, 2013, 3:45:42 PM4/5/13
to python_in...@googlegroups.com
Thanx!!!

Mahmoodreza Aarabi

unread,
Sep 11, 2014, 7:32:05 AM9/11/14
to python_in...@googlegroups.com
Thanks alot dear justin
:)


On Saturday, April 6, 2013 12:02:50 AM UTC+4:30, Justin Israel wrote:
The equivalent of sip for PySide is shiboken:

import shiboken
ptr = long(shiboken.getCppPointer(obj)[0])



On Apr 6, 2013, at 12:46 AM, vux wrote:

> In PyQt i had function to get maya-style path of qt control:
> def qControlPath( ctl ):
>    return apiui.MQtUtil.fullName( long(unwrapinstance(ctl)) )
>
> At now i start to use PySide. It does not have sip and unwrapinstance, so how to get fullPath of qt control?
>
> --
> 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 python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages