def show():
    """Try showing the most desirable GUI

    This function cycles through the currently registered
    graphical user interfaces, if any, and presents it to
    the user.

    """

    parent = next(
        o for o in QtWidgets.QApplication.instance().topLevelWidgets()
        if o.objectName() == "MayaWindow"
    )

    gui = _discover_gui()

    if gui is None:
        _show_no_gui()
    else:
        return gui(parent)
def show():
    

    parent = next(
        o for o in QtWidgets.QApplication.instance().topLevelWidgets()
        if o.objectName() == "MayaWindow"
    )

    gui = _discover_gui()

    if gui is None:
        _show_no_gui()
    else:
        return gui(parent)
def show ( ) : parent = next ( o for o in QtWidgets . QApplication . instance ( ) . topLevelWidgets ( ) if o . objectName ( ) == "MayaWindow" ) gui = _discover_gui ( ) if gui is None : _show_no_gui ( ) else : return gui ( parent )
Try showing the most desirable GUI

    This function cycles through the currently registered
    graphical user interfaces, if any, and presents it to
    the user.
Try showing the most desirable GUI