No project description provided
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) ├hicolor │├16x16/apps/myapp.png │├32x32/apps/myapp.png │┆ │└scalable/apps/myapp.svg └mypackage-builtin ├16x16 │├actions ││├document-open.png ││┆ │├mimetypes ││├application-x-mymime.png ┆┆┆
This package provides the following functions to ease bundling an in-memory icon theme for those systems:
- write_theme_indices
Creates .index.theme files from the .png and .svg files.
- write_resources
Create a .qrc and _rc.py file to import the icon data from. (Needs the .index.theme files)
- write_iconset
Creates a iconset folder for OSX apps, e.g. via py2app, using the hicolor/<s>x<s>/apps/myapp.png files.
- install_icon_theme
To be used in a running application to make the builtin icons available.
The hicolor/<s>x<s>/apps/myapp.png files can be
installed to the system by packagers (/usr/share/icons/hicolor/…)
subsequently used in a .desktop file (Icon=myapp)
used as window icon (self.setWindowIcon(QIcon.fromTheme('myapp')))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qtico-0.2.1.tar.gz.
File metadata
- Download URL: qtico-0.2.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
067b882aabf69e60ec0d45b21aee5556a79ea01ffc6f828caea3a6c8e8d2a2bb
|
|
| MD5 |
44418b26021e953439853a7bec4f5191
|
|
| BLAKE2b-256 |
c6dc7918761f2f46c2ad79e670aa30f24f85e06f7bda59f232e1ebfd768eb862
|
Provenance
The following attestation bundles were made for qtico-0.2.1.tar.gz:
Publisher:
publish.yml on flying-sheep/qtico
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qtico-0.2.1.tar.gz -
Subject digest:
067b882aabf69e60ec0d45b21aee5556a79ea01ffc6f828caea3a6c8e8d2a2bb - Sigstore transparency entry: 170679815
- Sigstore integration time:
-
Permalink:
flying-sheep/qtico@4e449b12c62060cbe1fb9af122068ad69d7cce4e -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/flying-sheep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4e449b12c62060cbe1fb9af122068ad69d7cce4e -
Trigger Event:
release
-
Statement type:
File details
Details for the file qtico-0.2.1-py3-none-any.whl.
File metadata
- Download URL: qtico-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19d5e81ab75fbc64af5d7f46bd308634aa8fa43833074fcba2581829857f94db
|
|
| MD5 |
1c7054d0622c4a269e3b123290157908
|
|
| BLAKE2b-256 |
4975c0cfe925f437e1c00bd487530a4b1d0807d7feb8e533594d524f9027168e
|
Provenance
The following attestation bundles were made for qtico-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on flying-sheep/qtico
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qtico-0.2.1-py3-none-any.whl -
Subject digest:
19d5e81ab75fbc64af5d7f46bd308634aa8fa43833074fcba2581829857f94db - Sigstore transparency entry: 170679816
- Sigstore integration time:
-
Permalink:
flying-sheep/qtico@4e449b12c62060cbe1fb9af122068ad69d7cce4e -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/flying-sheep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4e449b12c62060cbe1fb9af122068ad69d7cce4e -
Trigger Event:
release
-
Statement type: