navigate.view.custom_widgets.ArrowLabel.ArrowLabel
- class navigate.view.custom_widgets.ArrowLabel.ArrowLabel(master, *args, xys=[], direction='right', image_width=300, image_height=200, **kwargs)
Bases:
LabelA label that displays an arrow image.
- __init__(master, *args, xys=[], direction='right', image_width=300, image_height=200, **kwargs)
Initialize the ArrowLabel.
- Parameters:
master (tk.Widget) – The parent widget.
*args (list) – Additional positional arguments to pass to the tk.Label constructor.
xys (list of tuples) – The coordinates of the arrow.
direction (str) – The direction of the arrow. One of “right”, “left”, “up”, or “down”.
image_width (int) – The width of the image.
image_height (int) – The height of the image.
**kwargs (dict) – Additional keyword arguments to pass to the tk.Label constructor.
Methods
__init__(master, *args[, xys, direction, ...])Initialize the ArrowLabel.
Attributes
- image
The image to display.
- Type:
ImageTk.PhotoImage