Arrow#

class ignis.widgets.Widget.Arrow(*args: Any, **kwargs: Any)#

Bases: Icon

An arrow icon that can rotate (with animation!). Useful for dropdown lists.

Hint

If you are looking for a button with an arrow that rotates on click, see ArrowButton.

Hint

You can set your custom icon name or image using the image property.

Widget.Arrow(
    pixel_size=20, # inherited from Widget.Icon
    rotated=False,
    degree=90,
    time=135,
    direction="right",
    counterclockwise=False,
    # image="some-icon/OR/path/to/file" # if you want a custom icon name or image
)
property rotated: bool#
  • optional, read-write

Whether the arrow is rotated.

Default: False.

property degree: int#
  • optional, read-write

The target rotation degree. Must be > 0.

Default: 90.

property time: int#
  • optional, read-write

Rotation time in milliseconds.

Default: 135.

property direction: str#
  • optional, read-write

The direction of the arrow. Do not use this property if using custom icon name.

Default: right.

Direction:
  • right

  • left

  • up

  • down

property counterclockwise: bool#
  • optional, read-write

Whether to rotate counterclockwise.

Default: False.

toggle() None#

Rotate arrow.

Return type:

None