LoadImages#
- class ansys.aedt.toolkits.common.ui.utils.images.load_images.LoadImages(path=None)[source]#
A utility class for managing image and icon paths in a PySide6 desktop application.
This class facilitates the retrieval of image and icon paths, allowing the application to access and display graphical assets.
- Parameters:
- path
str
,optional
The base path to the directory containing images. If not provided, the default path is the directory where the script is located.
- path
Examples
>>> image_loader = LoadImages() >>> icon_path = image_loader.icon_path("my_icon.png") >>> image_path = image_loader.image_path("my_image.png")
Methods
LoadImages.icon_path
(icon_name)Get the full path for the specified icon.
LoadImages.image_path
(file_name)Get the full path for the specified image file.