Skip to content

Corner

class CornerOrientation (value, names=_not_given, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

member TOP_LEFT 1

member TOP_RIGHT 2

member BOTTOM_LEFT 3

member BOTTOM_RIGHT 4

class Corner (orientation: Literal['top-left', 'top-right', 'bottom-left', 'bottom-right'] | CornerOrientation = CornerOrientation.TOP_RIGHT, 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: DrawingArea, Widget

static render_shape (cr: Context, width: float, height: float, orientation: CornerOrientation = CornerOrientation.TOP_LEFT)

property orientation CornerOrientation