Skip to content

Scale

import { Aside } from “@astrojs/starlight/components”; import TypeSignature from “@components/TypeSignature.astro”;

<TypeSignature typeName={ “ScaleMark” } typePrefix={ “class” } typeArgList={ “(value, markup, position)” }> ScaleMark

Bases: NamedTuple

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

<TypeSignature typeName={ “value” } typePrefix={ “attribute” } returnType={ “float” }> value

Alias for field number 0

<TypeSignature typeName={ “markup” } typePrefix={ “attribute” } returnType={ “str | None” }> markup

Alias for field number 1

<TypeSignature typeName={ “position” } typePrefix={ “attribute” } returnType={ “Literal[‘bottom’, ‘left’, ‘right’, ‘top’] | PositionType” }> position

Alias for field number 2

<TypeSignature typeName={ “Scale” } typePrefix={ “class” } typeArgList={ “(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)” }> Scale

Bases: Scale, Widget

<TypeSignature typeName={ “min_value” } typePrefix={ “property” } returnType={ “float” }> min_value

<TypeSignature typeName={ “max_value” } typePrefix={ “property” } returnType={ “float” }> max_value

<TypeSignature typeName={ “value” } typePrefix={ “property” } returnType={ “float” }> value