RealItem Class

class NXOpen.UIStyler.RealItem

Bases: NXOpen.UIStyler.StylerItem

Represents a Real for UI Styler

New in version NX5.0.0.

Properties

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

Methods

Method Description
AddActivateHandler Registers activate callback.
Dispose Free resources associated with the instance.
GetItemType Gets the dialog item type.
InitializeAttachment Returns initialized dialog item attachment information @return attachment object
IsEqualTo Equates two styler items @return
SetAttachment Specifies the updated dialog item attachment information
SetBitmap  
SetFocus Sets focus
SetLabel Set the label

Property Detail

ItemValue

RealItem.ItemValue

Returns or sets the item value

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

Getter Method

Signature ItemValue()

Returns:
Return type:float

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature ItemValue(itemVal)

Parameters:itemVal (float) – Real value to display in the text field

New in version NX5.0.0.

License requirements: None.

Sensitivity

RealItem.Sensitivity

Returns or sets the sensitivity

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

Getter Method

Signature Sensitivity()

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Sensitivity(type)

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

New in version NX5.0.0.

License requirements: None.

Visibility

RealItem.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(type)

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

New in version NX5.0.0.

License requirements: None.

Method Detail

AddActivateHandler

RealItem.AddActivateHandler

Registers activate callback.

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

Signature AddActivateHandler(activateevent, isDialogLaunchingEvent)

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

New in version NX5.0.0.

License requirements: None.

SetBitmap

RealItem.SetBitmap

Signature SetBitmap(strBitmap)

Parameters:strBitmap (str) – Filename with .ubm, .xpm, or .bmp extension that contains a bitmap definition

New in version NX5.0.0.

License requirements: None.

SetFocus

RealItem.SetFocus

Sets focus

Signature SetFocus()

New in version NX5.0.0.

License requirements: None.

SetLabel

RealItem.SetLabel

Set the label

Signature SetLabel(strLabel)

Parameters:strLabel (str) – Text label to display on the left side of the text field.

New in version NX5.0.0.

License requirements: None.