That works, but if we have multiple instance then its getting confused. But
yeah 95 % it works. Thanks Erik

On Mon, Sep 28, 2015 at 12:26 PM, Erik Johansson <[email protected]>
wrote:

> QtGui.QApplication.activeWindow()
>
> Should work
> On Sep 28, 2015 9:22 PM, "Kurian O.S" <[email protected]> wrote:
>
>> Hey All,
>>
>> Is there any fast way to get the nuke main window instance with pyside or
>> pyqt ? in maya they have
>>
>> import maya.OpenMayaUI as mui
>> ptr = mui.MQtUtil.mainWindow()
>> parent = sip.wrapinstance(long(ptr), QtGui.QMainWindow)
>>
>> Do Nuke have something similar ?
>>
>> Thanks
>>
>> --
>> --:: Kurian ::--
>>
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>


-- 
--:: Kurian ::--
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to