pymel.core.uitypes.Panel

Inheritance diagram of Panel

class Panel

class counterpart of mel function panel

This command allows editing or querying properties of any panels. Not all of the common properites of panels can be used with this command. Flags such as -tearOff and -replacePanel require that you use the explicit panel command. The command ‘getPanel -typeOf panelName’ will return the explicit type of a panel. In query mode, return type is based on queried flag.

copy(val=True, **kwargs)

Makes this panel a copy of the specified panel. Both panels must be of the same type.

Derived from mel command maya.cmds.panel

getControl(**kwargs)

Returns the top level control for this panel. Usually used for getting a parent to attach popup menus. CAUTION: panels may not have controls at times. This flag can return “” if no control is present.

Derived from mel command maya.cmds.panel

getDocTag(**kwargs)

Attaches a tag to the maya panel.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.panel

getIsUnique(**kwargs)

Returns true if only one instance of this panel type is allowed.

Derived from mel command maya.cmds.panel

getLabel(**kwargs)

Specifies the user readable label for the panel.

Derived from mel command maya.cmds.panel

getMenuBarVisible(**kwargs)

Controls whether the menu bar for the panel is displayed.

Derived from mel command maya.cmds.panel

getNeedsInit(**kwargs)

(Internal) On Edit will mark the panel as requiring initialization. Query will return whether the panel is marked for initialization. Used during file -new and file -open.

Derived from mel command maya.cmds.panel

getPopupMenuProcedure(**kwargs)

Specifies the procedure called for building the panel’s popup menu(s). The default value is “buildPanelPopupMenu”. The procedure should take one string argument which is the panel’s name.

Derived from mel command maya.cmds.panel

getTearOff(**kwargs)

Will tear off this panel into a separate window with a paneLayout as the parent of the panel. When queried this flag will return if the panel has been torn off into its own window.

Derived from mel command maya.cmds.panel

init(val=True, **kwargs)

Initializes the panel’s default state. This is usually done automatically on file -new and file -open.

Derived from mel command maya.cmds.panel

replacePanel(val=True, **kwargs)

Will replace the specifed panel with this panel. If the target panel is within the same layout it will perform a swap.

Derived from mel command maya.cmds.panel

setDocTag(val=True, **kwargs)

Attaches a tag to the maya panel.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.panel

setLabel(val=True, **kwargs)

Specifies the user readable label for the panel.

Derived from mel command maya.cmds.panel

setMenuBarVisible(val=True, **kwargs)

Controls whether the menu bar for the panel is displayed.

Derived from mel command maya.cmds.panel

setNeedsInit(val=True, **kwargs)

(Internal) On Edit will mark the panel as requiring initialization. Query will return whether the panel is marked for initialization. Used during file -new and file -open.

Derived from mel command maya.cmds.panel

setPopupMenuProcedure(val=True, **kwargs)

Specifies the procedure called for building the panel’s popup menu(s). The default value is “buildPanelPopupMenu”. The procedure should take one string argument which is the panel’s name.

Derived from mel command maya.cmds.panel

setTearOff(val=True, **kwargs)

Will tear off this panel into a separate window with a paneLayout as the parent of the panel. When queried this flag will return if the panel has been torn off into its own window.

Derived from mel command maya.cmds.panel

unParent(val=True, **kwargs)

Specifies that the panel should be removed from its layout. This (obviously) cannot be used with query.

Derived from mel command maya.cmds.panel

Previous topic

pymel.core.uitypes.PaneLayout

Next topic

pymel.core.uitypes.PathButtonGrp

Core

Core Modules

Other Modules

This Page