Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Icon Class Reference

Public Member Functions

def __init__ (self)
 
def addImage (self, image)
 
def makeICNS (self, fn)
 
def makeICO (self, fn)
 

Public Attributes

 images
 

Static Public Attributes

 notify = directNotify.newCategory("Icon")
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ addImage()

def 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. 

◆ makeICNS()

def makeICNS (   self,
  fn 
)
Writes the images to an Apple ICNS file.  Returns True on success. 

◆ makeICO()

def makeICO (   self,
  fn 
)
Writes the images to a Windows ICO file.  Returns True on success. 

Member Data Documentation

◆ images

images

◆ notify

notify = directNotify.newCategory("Icon")
static