Could you override the closeEvent in whatever QWidget destroys the UI, and
have it kill the scriptJob instead?

On Wed, Apr 20, 2011 at 10:40 AM, Shawn Patapoff <
[email protected]> wrote:

> Hey,
>
> Has anyone found any other way to parent a scriptJob to a PyQt created
> GUI in maya without having to attach a maya created dummy object?
>
> This is what we're doing:
> dummyObj = cmds.helpLine(visible=False, width=100,
> parent='mainVerticalLayout')
> cmds.scriptJob( e=['SelectionChanged', self.updateUI],
> parent=dummyObj )
>
> mainVerticalLayout being the PyQt object. If I parent the scriptJob
> directly to mainVerticalLayout maya doesn't seem to see it.
>
> Cheers,
> Shawn
>
> --
> http://groups.google.com/group/python_inside_maya
>



-- 
John Patrick
404-242-2675
[email protected]
http://www.canyourigit.com

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to