ClausImageWidget
image_widget = claustk.ClausImageWidget(root, image_path="img.png")
image_widget.pack(padx=10, pady=10)
| Argument | Description |
|---|---|
| image_path | str, path to image file |
| image_size | Default is 1, the higher the value, the larger the widget and image size. |
| Other tkinter.Canvas arguments |
Methods
- .load_image()
image_widget.load_image("new_image.png")