예제 #1
0
def load_all() -> None:
    for image in LOCAL_ICONS_PATH.glob("*"):
        try:
            ImageEnum(image.stem)
            IMAGES[image.stem] = str(image)
        except ValueError:
            pass
예제 #2
0
 def load_all(cls):
     for image in LOCAL_ICONS_PATH.glob("*"):
         cls.images[image.stem] = str(image)