RadioBox Class

class NXOpen.UIStyler.RadioBox

Bases: NXOpen.UIStyler.StylerItem

Represents a RadioBox for UI Styler

New in version NX5.0.0.

Properties

Property Description
ItemValue Returns or sets the item value
Visibility Returns or sets the visibility

Methods

Method Description
AddValueChangedHandler Registers value change callback.
Dispose Free resources associated with the instance.
GetItemType Gets the dialog item type.
GetSensitivity Gets the sensitivity
InitializeAttachment Returns initialized dialog item attachment information
IsEqualTo Equates two styler items
SetAttachment Specifies the updated dialog item attachment information
SetDefaultAction Set default action
SetLabel Sets label
SetSensitivity Sets the sensitivity

Property Detail

ItemValue

RadioBox.ItemValue

Returns or sets the item value

-------------------------------------

Getter Method

Signature ItemValue

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ItemValue

Parameters:itemVal (int) – Zero-based index indicating the choice to be selected. It must be in the range of existing choices.

New in version NX5.0.0.

License requirements: None.

Visibility

RadioBox.Visibility

Returns or sets the visibility

-------------------------------------

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 sensitive, FALSE if insensitive

New in version NX5.0.0.

License requirements: None.

Method Detail

AddValueChangedHandler

RadioBox.AddValueChangedHandler

Registers value change callback.

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

Signature AddValueChangedHandler(valuechangedevent, isDialogLaunchingEvent)

Parameters:
  • valuechangedevent (CallableObject) – Callback for value changed event
  • isDialogLaunchingEvent (bool) – TRUE if dialog is going to launch, FALSE if not

New in version NX5.0.0.

License requirements: None.

GetSensitivity

RadioBox.GetSensitivity

Gets the sensitivity

Signature GetSensitivity()

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

SetDefaultAction

RadioBox.SetDefaultAction

Set default action

Signature SetDefaultAction()

New in version NX5.0.0.

License requirements: None.

SetLabel

RadioBox.SetLabel

Sets label

Signature SetLabel(strLabel)

Parameters:strLabel (str) – Text to be set for the descriptive label

New in version NX5.0.0.

License requirements: None.

SetSensitivity

RadioBox.SetSensitivity

Sets the sensitivity

Signature SetSensitivity(subitemIndex, type)

Parameters:
  • subitemIndex (int) –
  • type (bool) – TRUE if visible, FALSE if invisible

New in version NX5.0.0.

License requirements: None.