Skip to content

Scale

class ScaleMark (value, markup, position)

Bases: NamedTuple

Create new instance of ScaleMark(value, markup, position)

attribute value float

Alias for field number 0

attribute markup str | None

Alias for field number 1

attribute position Literal['bottom', 'left', 'right', 'top'] | PositionType

Alias for field number 2

class Scale (value: float = 0.0, min_value: float = 0.0, max_value: float = 1.0, draw_value: bool = False, value_position: Literal['bottom', 'left', 'right', 'top'] | PositionType = Gtk.PositionType.TOP, orientation: Literal['v', 'vertical', 'h', 'horizontal'] | Orientation = Gtk.Orientation.HORIZONTAL, increments: tuple[float, float] | None = None, marks: Iterable[ScaleMark] | None = None, digits: int = 1, inverted: bool = False, has_origin: bool = True, name: str | None = None, visible: bool = True, all_visible: bool = False, style: str | None = None, style_classes: Iterable[str] | str | None = None, tooltip_text: str | None = None, tooltip_markup: str | None = None, h_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, v_align: Literal['fill', 'start', 'end', 'center', 'baseline'] | Align | None = None, h_expand: bool = False, v_expand: bool = False, size: Iterable[int] | int | None = None, **kwargs)

Bases: Scale, Widget

property min_value float

property max_value float

property value float