Optionally sets a new Menu Mode for the menu bar in the main Maya window. Returns the current Menu Mode, and if a new one is specified, then the previous Menu Mode is returned. Note that due to recent changes to the menu set architecture (8.0+), this function now takes a menu set as a parameter instead of a label.
Derived from mel command maya.cmds.setMenuMode
Example:
import pymel.core as pm
# Use the "Rendering" Menu Set, and at the same time get the one currently used.
prevMenuMode = pm.setMenuMode('renderingMenuSet')
# Print the current Menu Set: "renderingMenuSet".
print( pm.setMenuMode() )
pymel.core.windows.setNodeTypeFlag
Enter search terms or a module, class or function name.