direct.dist.icon
from direct.dist.icon import Icon
Inheritance diagram
- class Icon[source]
Bases:
object
This class is used to create an icon for various platforms.
- addImage(self, image)[source]
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.
- generateMissingImages(self)[source]
Generates image sizes that should be present but aren’t by scaling from the next higher size.
- notify = <direct.directnotify.Notifier.Notifier object>