FXArrowButton

Button with an arrow; the arrow can point in any direction. When clicked, the arrow button sends a SEL_COMMAND to its target. When ARROW_REPEAT is passed, the arrow button sends a SEL_COMMAND repeatedly while the button is pressed.


FXArrowButton(p, tgt=None, sel=0, opts=ARROW_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD)

Construct arrow button.

ArgumentTypeDefaultDescription
pFXComposite  
tgtFXObjectNone 
selInt0 
optsIntARROW_NORMAL 
xInt0 
yInt0 
wInt0 
hInt0 
plIntDEFAULT_PAD 
prIntDEFAULT_PAD 
ptIntDEFAULT_PAD 
pbIntDEFAULT_PAD 


canFocus()

Returns True because a button can receive focus.

Reimplemented from FXWindow.


disable()

Disable the button.

Reimplemented from FXWindow.


enable()

Enable the button.

Reimplemented from FXWindow.


getArrowColor()

Get the fill color for the arrow.


getArrowSize()

Get the default arrow size.


getArrowStyle()

Get the arrow style flags.


getDefaultHeight()

Get default height.

Reimplemented from FXFrame.


getDefaultWidth()

Get default width.

Reimplemented from FXFrame.


getJustify()

Get the current justification mode.


getState()

Get the button state (where True means the button is down).


getTipText()

Get tool tip message for this arrow button.


setArrowColor(clr)

Set the fill color for the arrow.

ArgumentTypeDefaultDescription
clrFXColor  


setArrowSize(size)

Set the default arrow size.

ArgumentTypeDefaultDescription
sizeInt  


setArrowStyle(style)

Set the arrow style flags.

ArgumentTypeDefaultDescription
styleInt  


setJustify(mode)

Set the current justification mode.

ArgumentTypeDefaultDescription
modeInt  


setState(s)

Set the button state (where True means the button is down).

ArgumentTypeDefaultDescription
sBool  


setTipText(text)

Set tool tip message for this arrow button.

ArgumentTypeDefaultDescription
textString  


Global flags

Arrow style options

ARROW_NONE

No arrow.

ARROW_UP

Arrow points up.

ARROW_DOWN

Arrow points down.

ARROW_LEFT

Arrow points left.

ARROW_RIGHT

Arrow points right.

ARROW_REPEAT

Button repeats if held down.

ARROW_AUTOGRAY

Automatically gray out when not updated.

ARROW_AUTOHIDE

Automatically hide button when not updated.

ARROW_TOOLBAR

Button is toolbar-style.

ARROW_SPINNER

Button is spinner-style.