Open mottosso opened 8 years ago
Stand out from traditional menus with larger item, icon, an image of resulting GUI along with a description of what it is for.
Generate your own menu and place it amongst other menus.
from maya import cmds from Qt import QtCore, QtWidgets cmds.menu("MyMenu", parent="MayaWindow") widgets = {w.objectName(): w for w in QtWidgets.qApp.allWidgets()} parent = widgets["MayaWindow"] menu = widgets["MyMenu"] def opening(*args): widget = QtWidgets.QMenu(parent) widget.setTearOffEnabled(True) widget.move(menu.pos()) widget.resize(200, 150) widget.show() menu.aboutToShow.connect(opening)
Goal
Stand out from traditional menus with larger item, icon, an image of resulting GUI along with a description of what it is for.
Implementation
Generate your own menu and place it amongst other menus.