.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.IconLocation: ========================================================================================================================================== |phoenix_title| **wx.IconLocation** ========================================================================================================================================== :ref:`wx.IconLocation` is a tiny class describing the location of an (external, i.e. not embedded into the application resources) icon. For most platforms it simply contains the file name but under some others (notably Windows) the same file may contain multiple icons and so this class also stores the index of the icon inside the file. In any case, its details should be of no interest to the application code and most of them are not even documented here (on purpose) as it is only meant to be used as an opaque class: the application may get the object of this class from somewhere and the only reasonable thing to do with it later is to create a :ref:`wx.Icon` from it. .. seealso:: :ref:`wx.Icon`, :meth:`wx.FileType.GetIcon` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class IconLocation:
| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.IconLocation.__init__` :meth:`~wx.IconLocation.GetFileName` :meth:`~wx.IconLocation.GetIndex` :meth:`~wx.IconLocation.IsOk` Returns ``True`` if the object is valid, i.e. was properly initialized, and ``False`` otherwise. :meth:`~wx.IconLocation.SetFileName` :meth:`~wx.IconLocation.SetIndex` :meth:`~wx.IconLocation.__bool__` :meth:`~wx.IconLocation.__nonzero__` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.IconLocation.FileName` See :meth:`~wx.IconLocation.GetFileName` and :meth:`~wx.IconLocation.SetFileName` :attr:`~wx.IconLocation.Index` See :meth:`~wx.IconLocation.GetIndex` and :meth:`~wx.IconLocation.SetIndex` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.IconLocation(object) **Possible constructors**:: IconLocation() IconLocation(filename, num=0) IconLocation is a tiny class describing the location of an (external, i.e. .. method:: __init__(self, *args, **kw) |overload| Overloaded Implementations: :html:`

` **__init__** `(self)` :html:`

` **__init__** `(self, filename, num=0)` :html:`

` .. method:: GetFileName(self) :rtype: `string` .. method:: GetIndex(self) :rtype: `int` .. method:: IsOk(self) Returns ``True`` if the object is valid, i.e. was properly initialized, and ``False`` otherwise. :rtype: `bool` .. method:: SetFileName(self, filename) :param `filename`: :type `filename`: string .. method:: SetIndex(self, num) .. method:: __bool__(self) :rtype: `int` .. method:: __nonzero__(self) :rtype: `int` .. attribute:: FileName See :meth:`~wx.IconLocation.GetFileName` and :meth:`~wx.IconLocation.SetFileName` .. attribute:: Index See :meth:`~wx.IconLocation.GetIndex` and :meth:`~wx.IconLocation.SetIndex`