API Reference

version()[source]

Returns the library and theme versions.

Return type

str

class wxHicolorIconTheme[source]

Bases: ArtProvider

wx.ArtProvider subclass providing the Hicolor Icon Theme.

Methods:

CreateBitmap(id, client, size)

Returns the requested resource.

icon2bitmap(icon, size)

Converts an Icon to a wx.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

Bitmap

static icon2bitmap(icon, size)[source]

Converts an Icon to a wx.Bitmap.

Parameters
  • icon (Icon)

  • size (int) – The desired size of the icon. If the icon isn’t scalable the icon is returned in its original size.

Return type

Bitmap