Hi all,

I'm new to this group and I can see there is a lot of knowledge here.

I have a UI which is using PySide2
The UI is loaded like this:

import sys
sys.path.append("V:/projects/coding/teamShirts")

from maya import OpenMayaUI as omui
from shiboken2 import wrapInstance
import teamSelector_main
from PySide2 import QtWidgets

reload(teamSelector_main)

ptr = omui.MQtUtil.mainWindow()
widget = wrapInstance(long(ptr), QtWidgets.QWidget)

d = teamSelector_main.TeamSelectorDialog(widget)
d.exec_()

The UI runs fine and does what I need, but it takes complete control of 
Maya. I cannot click anything in Maya until I have closed my UI.

My question is: How can I have my UI open and still be able to tumble in 
the viewport, select objects, etc.

I guess it's something to do with the 'parent' window, but I don't know.

Maya 2018

Many thanks!

Dan

-- 
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/08d09e53-6b41-47ed-a051-294048346a90n%40googlegroups.com.
  • [Maya-Python] Unabl... 'Daniel Sidi' via Python Programming for Autodesk Maya

Reply via email to