API Reference¶
Suru icon theme for wxPython 🐍.
Classes:
|
|
Functions:
|
Returns the version of this package and the icon theme, formatted for printing. |
-
class
SuruIconTheme
(name, comment, directories, inherits=None, scaled_directories=None, hidden=False, example='')[source]¶ Bases:
HumanityIconTheme
Attributes:
Methods:
__copy__
()__deepcopy__
([memodict])__eq__
(other)Return
self == other
.__iter__
()Iterate over the attributes of the class.
__repr__
()Return a string representation of the
IconTheme
.__setstate__
(state)__str__
()Return
str(self)
.create
()Create an instance of the Suru Icon Theme.
find_icon
(icon_name, size, scale[, ...])- type icon_name:
from_configparser
(theme_index_path)Constructs a
IconTheme
from config file.-
__class_getitem__
= <bound method GenericAlias of <class 'wx_icons_suru.SuruIconTheme'>>¶ Type:
MethodType
-
__copy__
()¶
-
__deepcopy__
(memodict={})¶
-
__setstate__
(state)¶
-
classmethod
from_configparser
(theme_index_path)¶ Constructs a
IconTheme
from config file.
-
version
()[source]¶ Returns the version of this package and the icon theme, formatted for printing.
- Return type:
-
class
wxSuruIconTheme
[source]¶ Bases:
wxHumanityIconTheme
Methods:
CreateBitmap
(id, client, size)Returns the requested resource.
- rtype:
icon2bitmap
(icon, size)Converts an
Icon
to awx.Bitmap
.-
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: