wx-icons-humanity

Humanity and Humanity Dark icon themes for wxPython 🐍


Keywords
wxpython, icons, iconset, humanity, python, python3
License
GPL-3.0
Install
pip install wx-icons-humanity==0.1.3

Documentation

wx_icons_humanity

Humanity and Humanity Dark icon themes for wxPython 🐍

This package provides wxPython wxArtProvider classes with icons from the Humanity and Humanity Dark Icon Themes.

Docs Documentation Build Status Docs Check Status
Tests Linux Test Status Windows Test Status macOS Test Status CodeFactor Grade pre-commit.ci status
PyPI PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel
Activity GitHub last commit GitHub commits since tagged version Maintenance
Other License GitHub top language Requirements Status pre-commit

Installation

wx_icons_humanity can be installed from PyPI.

To install with pip:

$ python -m pip install wx_icons_humanity

Usage

To use wx_icons_humanity in your application:

from wx_icons_humanity import wxHumanityIconTheme

class MyApp(wx.App):
        def OnInit(self):
                wx.ArtProvider.Push(wxHumanityIconTheme())
                self.frame = TestFrame(None, wx.ID_ANY)
                self.SetTopWindow(self.frame)
                self.frame.Show()
                return True

And then the icons can be accessed through wx.ArtProvider:

wx.ArtProvider.GetBitmap('document-new', wx.ART_OTHER, wx.Size(48, 48))

Any FreeDesktop Icon Theme Specification name can be used.

Currently the Client ID is not used, so just pass wx.ART_OTHER.