pymel.core.windows.minimizeApp

minimizeApp(*args, **kwargs)

This command minimizes (iconifies) all of the application’s windows into a single desktop icon. To restore the application click on the desktop icon.

Derived from mel command maya.cmds.minimizeApp

Example:

import pymel.core as pm

pm.minimizeApp()