Skip to main content

Qt resource file containing Tango freedesktop.org icons

Project description

https://badge.fury.io/py/pyqttango.svg

Provides a Qt resource file containing Tango freedesktop.org icons.

Installation

Using pip:

pip install pyqttango

In your code,:

import pyqttango

You can then use the fromTheme(name) command of QIcon to get Tango icons. For example:

import sys
import pyqttango
from PyQt5 import QtGui # or from PySide2 import QtGui

app = QtGui.QGuiApplication(sys.argv) # Only necessary if an application is not already created
QtGui.QIcon.setThemeName('tango')
icon = QtGui.QIcon.fromTheme('accessories-calculator')

For the possible icon names, please refer to the freedesktop.org Icon Naming Specification or WikiMedia Commons.

Release notes

0.2.0

  • Use qtpy instead of PyQt5. This allows the library to be compatible with PySide2 and PyQt5
  • Update license to Apache Software License 2.0

Development

pyqttango generates the Qt resource file (.rcc) using all SVG images available on WikiMedia Commons. The resource file is distributed as part of the wheel. If you want to manually create it, run:

python3 setup.py generate_rcc

License

As for 0.2.0, license under Apache Software License 2.0

Copyright (c) 2017-2019 Philippe Pinard

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyqttango, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pyqttango-0.2.0-py3-none-any.whl (1.7 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyqttango-0.2.0.tar.gz (20.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page