************* wx.IconBundle ************* Inheritance diagram for `wx.IconBundle`: | .. inheritance-diagram:: wx.IconBundle | Description =========== This class contains multiple copies of an icon in different sizes. .. seealso:: `wx.TopLevelWindow.SetIcons `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `AddIcon <#AddIcon>`_ * `AddIconFromFile <#AddIconFromFile>`_ * `GetIcon <#GetIcon>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Icon <#Icon>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__() `No docstrings available for this method.` -------- .. 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:** * `icon` (`wx.Icon `_) -------- .. method:: AddIconFromFile(file, type) Adds an icon from a file. **Parameters:** * `file` (string) * `type` (long) -------- .. method:: 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:** * `size` (`wx.Size `_) | **Returns:** `wx.Icon `_ -------- Properties ^^^^^^^^^^ .. attribute:: Icon See `GetIcon <#GetIcon>`_