direct.dist.icon

from direct.dist.icon import Icon

Inheritance diagram

Inheritance diagram of direct.dist.icon

class Icon[source]

Bases: object

This class is used to create an icon for various platforms.

__init__(self)[source]
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.

getLargestSize(self)[source]
makeICNS(self, fn)[source]

Writes the images to an Apple ICNS file. Returns True on success.

makeICO(self, fn)[source]

Writes the images to a Windows ICO file. Returns True on success.

notify = <direct.directnotify.Notifier.Notifier object>
writeSize(self, required_size, fn)[source]