domdfcoding / custom_wx_icons_tango

Tango icon theme for wxPython 🐍

Home Page:https://custom_wx_icons_tango.readthedocs.io/en/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wx_icons_tango

Tango icon theme for wxPython 🐍

This package provides a wxPython wxArtProvider class with icons from the Tango Icon Theme.

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

Installation

wx_icons_tango can be installed from PyPI.

To install with pip:

$ python -m pip install wx_icons_tango

Usage

To use wx_icons_tango in your application:

# this package
from wx_icons_tango import wxTangoIconTheme


class MyApp(wx.App):

        def OnInit(self):
                wx.ArtProvider.Push(wxTangoIconTheme())
                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.

About

Tango icon theme for wxPython 🐍

https://custom_wx_icons_tango.readthedocs.io/en/latest

License:GNU Lesser General Public License v3.0


Languages

Language:Python 90.6%Language:Just 4.9%Language:HTML 3.0%Language:CSS 1.4%