Hey man i suggest that use this method for running your window in maya:
class YourClass():
def getMainWindow():
mainWindow = QtGui.QApplication.activeWindow()
while True:
lastWin = mainWindow.parent()
if lastWin:
mainWindow = lastWin
else:
Hey Guys,
I am building my own Maya menu through userSetup.py ...
I have written another python script which is basically just a pySide
class. I want to call this script from the menu created in userSetup.py.
There is no main function .. just the class that gets instantiated at the
bottom of
Hey Guys,
I am building my own Maya menu through userSetup.py ...
I have written another python script which is basically just a pySide
class. I want to call this script from the menu created in userSetup.py.
There is no main function .. just the class that gets instantiated at the
bottom of