Skip to main content

Tools for using cross-platform Qt icon themes.

Project description

This package provides tools to manage PyQt icon themes.

The QIcon.fromTheme API works with icon themes following the freedesktop icon theme spec, which is great for Linux systems with installed and enabled themes, but not for Windows or OS X, which lack them.

To benefit, you just have to create a theme directory with the right structure and use this package’s functions:

icons (The default directory name)

This package provides the following functions to ease bundling an in-memory icon theme for those systems:

Creates .index.theme files from the .png and .svg files.
Create a .qrc and file to import the icon data from. (Needs the .index.theme files)
Creates a iconset folder for OSX apps, e.g. via py2app, using the hicolor/<s>x<s>/apps/myapp.png files.
To be used in a running application to make the builtin icons available.

The hicolor/<s>x<s>/apps/myapp.png files can be

  1. installed to the system by packagers (/usr/share/icons/hicolor/…)
  2. subsequently used in a .desktop file (Icon=myapp)
  3. used as window icon (self.setWindowIcon(QIcon.fromTheme('myapp')))

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
qtico-0.1-py3-none-any.whl (9.9 kB) Copy SHA256 hash SHA256 Wheel py3
qtico-0.1.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page