Suru icon theme for wxPython 🐍
Project description
Suru icon theme for wxPython 🐍
This package provides a wxPython wxArtProvider class with icons from the Suru Icon Theme.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Activity |
|
Other |
Installation
wx_icons_suru can be installed from PyPI.
To install with pip:
$ python -m pip install wx_icons_suru
Usage
To use wx_icons_suru in your application:
from wx_icons_suru import wxSuruIconTheme
class MyApp(wx.App):
def OnInit(self):
wx.ArtProvider.Push(wxSuruIconTheme())
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
Release history Release notifications | RSS feed
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_suru-0.1.2.tar.gz
(11.9 MB
view hashes)
Built Distribution
Close
Hashes for wx_icons_suru-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba766a6bb1f25b61cd78089db652fcc4ca9e4c4d901fd2840b017c05e5f6207b |
|
MD5 | 4e7e687e4e8e3cbe17226d61224a3dbd |
|
BLAKE2b-256 | 26a76e8fc003d435bfa04ab78a980a6e685bcfc3836f0b175a1ca212f5509905 |