We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: