hello, try to use d.show() instead of d.exec_() Furthermore, make sure you don't have a self.setModal(True) in your UI, or you don't use a widget that is modal by default.
Le mardi 18 août 2020 à 08:02:48 UTC-4, [email protected] a écrit : > > 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/f8d59caa-ebd6-44c5-90d1-76f8cd7351aen%40googlegroups.com.
