def get_parent():
    ptr = OpenMayaUI.MQtUtil.mainWindow()
    return wrapInstance(long(ptr), QtGui.QMainWindow)
Return main window as QObject
dataset/ETHPy150Open csaez/quicklauncher/quicklauncher/lib.py/get_parent