API Reference¶
-
class
wx_icons_humanity.
HumanityDarkIconTheme
(name, comment, directories, inherits=None, scaled_directories=None, hidden=False, example='')[source]¶ -
-
find_icon
(icon_name, size, scale, prefer_this_theme=True)[source]¶ - Parameters
icon_name –
size –
scale –
prefer_this_theme – Return an icon from this theme even if it has to be resized, rather than a correctly sized icon from the parent theme. Default
True
.
- Returns
- Return type
-
classmethod
from_configparser
(theme_index_path)¶ Constructs a
IconTheme
from config file.
-
scaled_directories
: List[wx_icons_hicolor.directory.Directory]¶
-
-
class
wx_icons_humanity.
HumanityIconTheme
(name, comment, directories, inherits=None, scaled_directories=None, hidden=False, example='')[source]¶ -
-
classmethod
from_configparser
(theme_index_path)¶ Constructs a
IconTheme
from config file.
-
scaled_directories
: List[wx_icons_hicolor.directory.Directory]¶
-
classmethod
-
class
wx_icons_humanity.
wxHumanityDarkIconTheme
[source]¶ -
CreateBitmap
(id, client, size)[source]¶ Returns the requested resource.
- Parameters
id – Unique identifier of the bitmap.
client – Identifier of the client (i.e. who is asking for the bitmap). This only serves as a hint.
size – Preferred size of the bitmap. The function may return a bitmap of different dimensions; it will be automatically rescaled to meet client’s request.
-
-
class
wx_icons_humanity.
wxHumanityIconTheme
[source]¶ -
CreateBitmap
(id, client, size)[source]¶ Returns the requested resource.
- Parameters
id (
Any
) – Unique identifier of the bitmap.client (
Any
) – Identifier of the client (i.e. who is asking for the bitmap). This only serves as a hint.size (
Union
[Tuple
[int
],Size
]) – Preferred size of the bitmap. The function may return a bitmap of different dimensions; it will be automatically rescaled to meet client’s request.
- Return type
Bitmap
-