Hicolor icon theme for wxPython
Project description
Hicolor icon theme for wxPython
This package provides a wxPython wxArtProvider class with icons from the Hicolor/Gnome Icon Theme.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Activity |
|
Other |
Installation
wx_icons_hicolor can be installed from PyPI.
To install with pip:
$ python -m pip install wx_icons_hicolor
Usage
To use wx_icons_hicolor in your application:
from wx_icons_hicolor import wxHicolorIconTheme
class MyApp(wx.App):
def OnInit(self):
wx.ArtProvider.Push(wxHicolorIconTheme())
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wx_icons_hicolor-0.1.4.tar.gz
(39.2 MB
view hashes)
Built Distribution
Close
Hashes for wx_icons_hicolor-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a60713e243007ebb332bf0b37cfef29f798964cfb23380269d80c9c5ca91fe |
|
MD5 | 09b53a60e164cfc22836e83fa7e9bc96 |
|
BLAKE2b-256 | 552a2adfcc96d1f377c3e2989049e4f4648029dfdec612303357842af4fa343c |