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__()[source]
addImage(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()[source]

Generates image sizes that should be present but aren’t by scaling from the next higher size.

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

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

makeICO(fn)[source]

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

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