Slider

A Control subclass that wraps Cocoa’s NSSlider.

class Slider(parent, minValue, maxValue[, value])
Parameters:
minValue

Numeric. The value the slider has when its knob is at its minimum.

maxValue

Numeric. The value the slider has when its knob is at its maximum.

value

Numeric. The initial value of the slider. In Cocoa: intValue.

numberOfTickMarks

Numeric. Number of tickmarks along the slider. The apparence of the slider changes if this value is 0.

tickMarkPosition

Cocoa constant. Where the tickmaks are compared to the slider (above or below). Use with NSTickMarkPosition constants.

allowsTickMarkValuesOnly

Boolean. Whether the slider knob can only set its value to one that exactly matches a tickmark.

Previous topic

SegmentedControl

Next topic

Toolbar

This Page