Skip to main content
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

Metadata

Release files for pyqttango 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyqttango 0.2.0
File Size Uploaded
pyqttango-0.2.0.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyqttango 0.2.0
File Interpreter ABI Platform
pyqttango-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / pyqttango-0.2.0.tar.gz

Download URL pyqttango-0.2.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
66660751ec4e5b943bc763934424774f0bb57e35ca3a566f9242f8c5cf2bdfb4
BLAKE2b-256 checksum
How to use checksums
f30163a240bb1b713bb88b942173c0cb922ea1872e89976e0408e677df070a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / pyqttango-0.2.0-py3-none-any.whl

Download URL pyqttango-0.2.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
30b2b4043a644b19ca658adaebf17e729da3a998de3aca22e5fb3cd35b5b6a44
BLAKE2b-256 checksum
How to use checksums
52e4a907f481310b55e21b902d646c1bf937209468cd1090fb0ea3ed8d38eefa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page