Hi,

You know how the save dialog locks up the Maya UI and only allows you to
interact with the save dialog… do you know how can this be achieved when
loading up a custom PySide window?

I’m doing this at the moment, which makes sure that the custom ui stays on
top of Maya, but it doesn’t lock up the main Maya window in the same way
the save dialog does:

from PySide import QtGui
class MyApp(QtGui.QMainWindow):
    def __init__(self, parent=None):
        super(MyApp, self).__init__(parent)

        self.centralWidget = QtGui.QWidget(self)
        self.setCentralWidget(self.centralWidget)
        self.mainLayout=QtGui.QVBoxLayout(self.centralWidget)
        self.list_widget = QtGui.QListWidget()
        self.mainLayout.addWidget(self.list_widget)

my_app = MyApp( parent=QtGui.QApplication.activeWindow() )
my_app.show()

Cheers,
Fredrik
​

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWMVD1vAj3pyJLBEjmNRm0R5p5%2BuaTDzxD7oOEW%3D0MvfgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to