from direct.dist.icon import Icon
- class Icon
This class is used to create an icon for various platforms.
- addImage(self, image)
Adds an image to the icon. Returns False on failure, True on success. Only one image per size can be loaded, and the image size must be square.
Generates image sizes that should be present but aren’t by scaling from the next higher size.
- makeICNS(self, fn)
Writes the images to an Apple ICNS file. Returns True on success.
- makeICO(self, fn)
Writes the images to a Windows ICO file. Returns True on success.
- notify = <direct.directnotify.Notifier.Notifier object>
- writeSize(self, required_size, fn)