def getMayaWindow(): if _pyside_ver == 1: ptr = omui.MQtUtil.mainWindow() if ptr is not None: return wrp(long(ptr), QMainWindow) elif _pyside_ver == 2: from pymel.core import ui return ui.Window('MayaWindow').asQtObject()
def getMayaWindow(): ptr = omui.MQtUtil.mainWindow() if ptr is not None: return wrp(long(ptr), QMainWindow)