Use a callback to read out the slider value every time the marker is
moved.
|
|
__init__(self,
parent=None,
name=None,
size=None,
min_size=None,
max_size=None,
helptext=None,
position=None,
style=None,
hexpand=None,
vexpand=None,
font=None,
base_color=None,
background_color=None,
foreground_color=None,
selection_color=None,
border_size=None,
position_technique=None,
is_focusable=None,
comment=None,
scale_start=None,
scale_end=None,
step_length=None,
marker_length=None,
orientation=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
_setScale(self,
start,
end)
setScale(self, double scaleStart, double scaleEnd) |
source code
|
|
|
double
|
|
|
|
_setScaleStart(self,
start)
setScaleStart(self, double scaleStart) |
source code
|
|
|
double
|
|
|
|
_setScaleEnd(self,
end)
setScaleEnd(self, double scaleEnd) |
source code
|
|
|
double
|
|
|
|
_setValue(self,
value)
setValue(self, double value) |
source code
|
|
|
|
_setMarkerLength(self,
length)
setMarkerLength(self, int length) |
source code
|
|
|
int
|
|
|
|
_setOrientation(self,
orientation)
setOrientation(self, Orientation orientation) |
source code
|
|
|
int
|
|
|
|
_setStepLength(self,
length)
setStepLength(self, double length) |
source code
|
|
|
double
|
|
|
Inherited from widget.Widget:
__repr__,
__str__,
adaptLayout,
addChild,
addChildren,
afterHide,
beforeShow,
capture,
collectData,
collectDataAsDict,
deepApply,
distributeData,
distributeInitialData,
execute,
expandContent,
findChild,
findChildByName,
findChildren,
getAbsolutePos,
getData,
getNamedChildren,
hide,
insertChild,
insertChildBefore,
isCaptured,
isVisible,
listNamedWidgets,
mapEvents,
match,
removeAllChildren,
removeChild,
removeChildren,
requestFocus,
resizeToContent,
setData,
setInitialData,
show,
sizeChanged,
stylize
Inherited from widget.Widget (private):
_getBorderSize,
_getFont,
_getHeight,
_getMaxHeight,
_getMaxWidth,
_getMinHeight,
_getMinWidth,
_getName,
_getParent,
_getPosition,
_getSize,
_getStyle,
_getWidth,
_getX,
_getY,
_isFocusable,
_recursiveExpandContent,
_recursiveResizeToContent,
_setBorderSize,
_setFocusable,
_setFont,
_setHeight,
_setMaxHeight,
_setMaxWidth,
_setMinHeight,
_setMinWidth,
_setName,
_setParent,
_setPosition,
_setSize,
_setStyle,
_setWidth,
_setX,
_setY
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
HORIZONTAL = fife.Slider.HORIZONTAL
|
|
|
VERTICAL = fife.Slider.VERTICAL
|
|
|
ATTRIBUTES = Widget.ATTRIBUTES+ [IntAttr('orientation'), Float...
|
|
|
DEFAULT_HEXPAND = 1
|
|
|
DEFAULT_VEXPAND = 0
|
|
|
DEFAULT_SIZE = 10, 10
|
|
|
DEFAULT_MIN_SIZE = 10, 10
|
|
|
DEFAULT_SCALE_START = 0.0
|
|
|
DEFAULT_SCALE_END = 1.0
|
|
|
DEFAULT_STEP_LENGTH = 0.1
|
|
|
DEFAULT_MARKER_LENGTH = 10
|
|
|
DEFAULT_ORIENTATION = fife.Slider.HORIZONTAL
|
|
|
scale_start = property(_getScaleStart, _setScaleStart)
|
|
|
scale_end = property(_getScaleEnd, _setScaleEnd)
|
|
|
value = property(_getValue, _setValue)
|
|
|
marker_length = property(_getMarkerLength, _setMarkerLength)
|
|
|
orientation = property(_getOrientation, _setOrientation)
|
|
|
step_length = property(_getStepLength, _setStepLength)
|
|
Inherited from widget.Widget:
DEFAULT_BORDER_SIZE,
DEFAULT_COMMENT,
DEFAULT_FONT,
DEFAULT_HELPTEXT,
DEFAULT_MAX_SIZE,
DEFAULT_NAME,
DEFAULT_POSITION,
DEFAULT_POSITION_TECHNIQUE,
HIDE_SHOW_ERROR,
background_color,
base_color,
border_size,
font,
foreground_color,
height,
is_focusable,
max_height,
max_width,
min_height,
min_width,
name,
parent,
position,
selection_color,
size,
style,
width,
x,
y
|