pymel.core.uitypes.PyUI

digraph inheritance466ba9eb85 {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "PyUI" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.uitypes.PyUI",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
}

class PyUI
delete(*args, **kwargs)

This command deletes UI objects such as windows and controls. Deleting a layout or window will also delete all of its children. If a flag is used then all objects being deleted must be of the specified type. This command may not be edited or queried. NOTE: it is recommended that the type flags be used to disambiguate different kinds of objects with the same name.

Flags:
  • collection : cl (bool) [create]

    Object names for deletion are all radio or tool collections.

  • control : ctl (bool) [create]

    Object names for deletion are all controls.

  • editor : ed (bool) [create]

    Object names for deletion are all editors.

  • layout : lay (bool) [create]

    Object names for deletion are all layouts.

  • menu : m (bool) [create]

    Object names for deletion are all menus.

  • menuItem : mi (bool) [create]

    Object names for deletion are all menu items.

  • panel : pnl (bool) [create]

    Object names for deletion are all panels.

  • panelConfig : pc (bool) [create]

    Object names for deletion are panel configurations. Flag can have multiple arguments, passed either as a tuple or a list.

  • radioMenuItemCollection : ric (bool) [create]

    Object names for deletion are all radio menu item collections.

  • toolContext : tc (bool) [create]

    Object names for deletion are all tool contexts.

  • uiTemplate : uit (bool) [create]

    Object names for deletion are all UI templates.

  • window : wnd (bool) [create]

    Object names for deletion are all windows.

Derived from mel command maya.cmds.deleteUI

classmethod exists(name)
getParent()
name()
parent()
rename(*args, **kwargs)

This command renames the UI object passed as first arument to the new name specified as second argument. If the new name is a duplicate, or not valid, then re-naming fails and the old name is returned.

Derived from mel command maya.cmds.renameUI

shortName()
type(*args, **kwargs)

This command returns the type of UI element such as button, sliders, etc.

Flags:
  • isType : i (unicode) [create]

    Returns true|false if the object is of the specified type. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.objectTypeUI

window()

Previous topic

pymel.core.uitypes.PromptDialog

Next topic

pymel.core.uitypes.RadioButton

Core

Core Modules

Other Modules

This Page