AFXSlider

This class provides a slider, which allows the user to specify a value by dragging its value indicator.


AFXSlider(p, tgt=None, sel=0, opts=AFXSLIDER_NORMAL, x=0, y=0, w=0, h=0, pl=0, pr=0, pt=0, pb=0)

Constructor.

ArgumentTypeDefaultDescription
pFXComposite Parent widget.
tgtFXObjectNoneMessage target.
selInt0Message ID.
optsIntAFXSLIDER_NORMALOptions and hints.
xInt0X coordinate of origin.
yInt0Y coordinate of origin.
wInt0Width of the widget.
hInt0Height of the widget.
plInt0Left padding (margin).
prInt0Right padding (margin).
ptInt0Top padding (margin).
pbInt0Bottom padding (margin).


canFocus()

Returns True because a slider can receive focus.

Reimplemented from FXWindow.


disable()

Disables the slider.

Reimplemented from FXWindow.


enable()

Enables the slider.

Reimplemented from FXWindow.


getDecimalPlaces()

Returns the number of decimal points displayed.


getDefaultHeight()

Returns the default height.

Reimplemented from FXPacker.


getDefaultWidth()

Returns the default width.

Reimplemented from FXPacker.


getIncrement()

Returns the slider's auto-increment/decrement value.


getMaxLabelText()

Returns the maximum label's text.


getMinLabelText()

Returns the minimum label's text.


getRange()

Returns a sequence of ints (low, high) representing the widget's allowable minimum and maximum values.


getSliderStyle()

Returns the slider's style.


getTipText()

Returns the slider's tip text.


getTitleLabelJustify()

Returns the title label's justification mode.


getTitleLabelText()

Returns the title label's text.


getValue()

Returns the slider's value.


recalc()

Recalculates the slider. Redefined to handle slider movement.

Reimplemented from FXWindow.


setDecimalPlaces(dp)

Sets the number of decimal points displayed.

ArgumentTypeDefaultDescription
dpInt Number of decimal places.


setIncrement(inc)

Sets the slider's auto-increment/decrement value.

ArgumentTypeDefaultDescription
incInt Increment.


setMaxLabelText(text)

Sets the maximum label's text.

ArgumentTypeDefaultDescription
textString Max label text.


setMinLabelText(text)

Sets the minimum label's text.

ArgumentTypeDefaultDescription
textString Min label text.


setRange(lo, hi)

Sets the slider's maximum and minimum values.

ArgumentTypeDefaultDescription
loInt Minimum value.
hiInt Maximum value.


setSliderStyle(style)

Sets the slider's style.

ArgumentTypeDefaultDescription
styleInt Style flag.


setTipText(text)

Sets the slider's tip text.

ArgumentTypeDefaultDescription
textString Tip text.


setTitleLabelJustify(mode)

Sets the title label's justification mode.

ArgumentTypeDefaultDescription
modeInt Justification mode.


setTitleLabelText(text)

Sets the title label's text.

ArgumentTypeDefaultDescription
textString Title text.


setValue(value)

Sets the slider's value.

ArgumentTypeDefaultDescription
valueInt Value.


show()

Shows the slider.

Reimplemented from FXWindow.


Class flags

Message ID's.

ID_SLIDER

ID for the slider.

ID_LAST

Last ID for this class.


Global flags

options for tickmarks.

AFXSLIDER_HORIZONTAL

Slider shown horizontally.

AFXSLIDER_VERTICAL

Slider shown vertically.

AFXSLIDER_ARROW_UP

Slider has arrow head pointing up.

AFXSLIDER_ARROW_DOWN

Slider has arrow head pointing down.

AFXSLIDER_ARROW_LEFT

Slider has arrow head pointing left.

AFXSLIDER_ARROW_RIGHT

Slider has arrow head pointing right.

AFXSLIDER_INSIDE_BAR

Slider is inside the slot rather than overhanging.

AFXSLIDER_SHOW_VALUE

Show slider value.

AFXSLIDER_ABOVE_TITLE

Show slider above its title.

AFXSLIDER_AFTER_TITLE

Show slider after its title.

AFXSLIDER_NORMAL

Default slider options--slider is horizontal, inside the slot, and shown above its title label.