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.

Properties:
  • rotated (bool, optional, read-write): Whether the arrow is rotated. Default: False.

  • degree (int, optional, read-write): Target rotation degree. Must be > 0. Default: 90.

  • time (int, optional, read-write): Rotation time in milliseconds. Default: 135.

  • direction (str, optional, read-write): Direction of the arrow. Do not use this property if using custom icon name. Default: "right".

  • counterclockwise (bool, optional, read-write): Whether to rotate counterclockwise. Default: False.

Direction:
  • "right"

  • "left"

  • "up"

  • "down"

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
)
toggle() None#

Rotate arrow.