wx.IconBundle

Inheritance diagram for wx.IconBundle:



Description

This class contains multiple copies of an icon in different sizes.

Properties Summary

Class API

Methods

__init__()
No docstrings available for this method.

AddIcon(icon)

Adds the icon to the collection; if the collection already contains an icon with the same width and height, it is replaced by the new one.

Parameters:


AddIconFromFile(file, type)

Adds an icon from a file.

Parameters:

  • file (string)
  • type (long)

GetIcon(size)

Returns the icon with the given size; if no such icon exists, returns the icon with size wx.SYS_ICON_X / wx.SYS_ICON_Y; if no such icon exists, returns the first icon in the bundle. If size = wx.Size (-1, -1), returns the icon with size wx.SYS_ICON_X / wx.SYS_ICON_Y.

Parameters:


Returns:

wx.Icon


Properties

Icon
See GetIcon