TabControl Class — NXOpen Python API Reference 12.0.0 documentation

# TabControl Class

class `NXOpen.UIStyler.``TabControl`

  Bases: `NXOpen.UIStyler.StylerItem`

  Represents a Tab Control for UI Styler.

  New in version NX5.0.0.

# Properties

Property | Description
--- | ---
PageSwitchData | Returns the page switch data
Sensitivity | Returns or sets the sensitivity of the dialog item
Visibility | Returns or sets the visibility of the dialog item

# Methods

Method | Description
--- | ---
AddSwitchHandler | Registers switch callback.
Dispose | Free resources associated with the instance.
GetItemType | Gets the dialog item type.
InitializeAttachment | Returns initialized dialog item attachment information
IsEqualTo | Equates two styler items
SetAttachment | Specifies the updated dialog item attachment information
SetFocus | Sets focus

# Property Detail

## PageSwitchData

`TabControl.``PageSwitchData`

  Returns the page switch data

  `-------------------------------------`

  Getter Method

  Signature `PageSwitchData`

  Returns: |
  Return type: | `NXOpen.UIStyler.PageSwitchData`

  New in version NX5.0.0.

  License requirements: None.

## Sensitivity

`TabControl.``Sensitivity`

  Returns or sets the sensitivity of the dialog item

  `-------------------------------------`

  Getter Method

  Signature `Sensitivity`

  Returns: |
  Return type: | bool

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Sensitivity`

  Parameters: | type (bool) – TRUE if sensitive, FALSE if insensitive

  New in version NX5.0.0.

  License requirements: None.

## Visibility

`TabControl.``Visibility`

  Returns or sets the visibility of the dialog item

  `-------------------------------------`

  Getter Method

  Signature `Visibility`

  Returns: |
  Return type: | bool

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Visibility`

  Parameters: | type (bool) – TRUE if visible, FALSE if invisible

  New in version NX5.0.0.

  License requirements: None.

# Method Detail

## AddSwitchHandler

`TabControl.``AddSwitchHandler`

  Registers switch callback.

  This method should be called before calling `UIStyler.Dialog.Show()` or `UIStyler.Dialog.RegisterWithUiMenu()`

  Signature `AddSwitchHandler(switchevent, isDialogLaunchingEvent)`

  Parameters:

  - switchevent (CallableObject) –
  - isDialogLaunchingEvent (bool) –

  New in version NX5.0.0.

  License requirements: None.

## SetFocus

`TabControl.``SetFocus`

  Sets focus

  Signature `SetFocus()`

  New in version NX5.0.0.

  License requirements: None.