IntegerScale Class¶
-
class
NXOpen.UIStyler.IntegerScale¶ Bases:
NXOpen.UIStyler.StylerItemRepresents a IntegerScale for UI Styler
New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| ItemValue | Returns or sets |
| Sensitivity | Returns or sets the sensitivity of the dialog item. |
| Visibility | Returns or sets the visibility of the dialog item. |
Methods¶
| Method | Description |
|---|---|
| AddDragHandler | Registers drag callback. |
| AddValueChangedHandler | Registers value change 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 |
| SetLabels | Specifies the text for the minimum and maximum label. |
| SetLimits | Specifies the scale’s maximum and minimum value. |
Property Detail¶
ItemValue¶
-
IntegerScale.ItemValue¶ Returns or sets
-------------------------------------Getter Method
Signature
ItemValueReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ItemValueParameters: itemVal (int) – New in version NX5.0.0.
License requirements: None.
Sensitivity¶
-
IntegerScale.Sensitivity¶ Returns or sets the sensitivity of the dialog item.
-------------------------------------Getter Method
Signature
SensitivityReturns: TRUE if sensitive, FALSE if insensitive Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SensitivityParameters: type (bool) – TRUE if sensitive, FALSE if insensitive New in version NX5.0.0.
License requirements: None.
Visibility¶
-
IntegerScale.Visibility¶ Returns or sets the visibility of the dialog item.
-------------------------------------Getter Method
Signature
VisibilityReturns: TRUE if visible, FALSE if invisible Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VisibilityParameters: type (bool) – TRUE if visible, FALSE if invisible New in version NX5.0.0.
License requirements: None.
Method Detail¶
AddDragHandler¶
-
IntegerScale.AddDragHandler¶ Registers drag callback.
This method should be called before calling
UIStyler.Dialog.Show()orUIStyler.Dialog.RegisterWithUiMenu()Signature
AddDragHandler(dragevent, isDialogLaunchingEvent)Parameters: - dragevent (CallableObject) –
- isDialogLaunchingEvent (bool) –
New in version NX5.0.0.
License requirements: None.
AddValueChangedHandler¶
-
IntegerScale.AddValueChangedHandler¶ Registers value change callback.
This method should be called before calling
UIStyler.Dialog.Show()orUIStyler.Dialog.RegisterWithUiMenu()Signature
AddValueChangedHandler(valuechangedevent, isDialogLaunchingEvent)Parameters: - valuechangedevent (CallableObject) – Value changed event
- isDialogLaunchingEvent (bool) – True if launch any dialog else False
New in version NX5.0.0.
License requirements: None.
SetLabels¶
-
IntegerScale.SetLabels¶ Specifies the text for the minimum and maximum label.
By default, the system uses the maximum/minimum value as a text label.
Signature
SetLabels(minimumLabel, maximumLabel)Parameters: - minimumLabel (str) – minimum limit for label
- maximumLabel (str) – maximum limit for label
New in version NX5.0.0.
License requirements: None.