PushButton Class

class NXOpen.UIStyler.PushButton

Bases: NXOpen.UIStyler.StylerItem

Represents a PushButton for UI Styler

New in version NX5.0.0.

Properties

Property Description
Sensitivity Returns or sets the senstivity of dialog.
Visibility Returns or sets the visibility of dialog.

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
IsEqualTo Equates two styler items
SetAttachment Specifies the updated dialog item attachment information
SetBitmap Specifies a filename that contains a bitmap definition.
SetDefaultAction Sets default action
SetFocus Indicates that this dialog item is receiving keyboard focus.
SetLabel Specifies descriptive text to display for the dialog item.

Property Detail

Sensitivity

PushButton.Sensitivity

Returns or sets the senstivity of dialog.

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

Getter Method

Signature Sensitivity

Returns:senstivity of dialog
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Sensitivity

Parameters:type (bool) – to set senstivity of dialog

New in version NX5.0.0.

License requirements: None.

Visibility

PushButton.Visibility

Returns or sets the visibility of dialog.

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

Getter Method

Signature Visibility

Returns:to get visibility of dialog
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Visibility

Parameters:type (bool) – to set visibility of dialog

New in version NX5.0.0.

License requirements: None.

Method Detail

AddActivateHandler

PushButton.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) –
  • isDialogLaunchingEvent (bool) –

New in version NX5.0.0.

License requirements: None.

SetBitmap

PushButton.SetBitmap

Specifies a filename that contains a bitmap definition.

The filename must contain a UBM, XPM, or BMP extension. When you use this field, the system displays a bitmap for this dialog item instead of a text label. When a bitmap is present, the system uses the text label as a popup hint when a user places the mouse cursor over the bitmap.

Signature SetBitmap(bitmap)

Parameters:bitmap (str) – the bitmap extension

New in version NX5.0.0.

License requirements: None.

SetDefaultAction

PushButton.SetDefaultAction

Sets default action

Signature SetDefaultAction()

New in version NX5.0.0.

License requirements: None.

SetFocus

PushButton.SetFocus

Indicates that this dialog item is receiving keyboard focus.

Signature SetFocus()

New in version NX5.0.0.

License requirements: None.

SetLabel

PushButton.SetLabel

Specifies descriptive text to display for the dialog item.

It should describe the dialog item’s intended use. If you specify a bitmap for this dialog item, it uses this text as tooltip text.

Signature SetLabel(strLabel)

Parameters:strLabel (str) – the label string

New in version NX5.0.0.

License requirements: None.