Skip to main content

pyqt-svg-icon-text-widget

PyQt widget consists of textless QLabel which has svg image as an icon on the left and text included QLabel on the right.

This module is useful to set the icon included title bar.

Requirements

  • PyQt5 >= 5.8

Setup

python -m pip install pyqt-svg-icon-text-widget

Included Package

Usage

  • setSvgFile(filename: str) to set svg file

  • setText(text: str) to set text

Note

Svg icon QLabel's maximum height is set according to text included QLabel's font height.

Example

Code Sample

from PyQt5.QtWidgets import QApplication

from pyqt_svg_icon_text_widget import SvgIconTextWidget





if __name__ == "__main__":

    import sys



    app = QApplication(sys.argv)

    ex = SvgIconTextWidget()

    ex.setSvgFile('ico/dark-notepad.svg')

    ex.setText('Dark Notepad')

    ex.show()

    sys.exit(app.exec_())

Result

image

Metadata

Release files for pyqt-svg-icon-text-widget 0.0.31

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

Source distribution (sdist)

Source distribution for pyqt-svg-icon-text-widget 0.0.31
File Size Uploaded
pyqt-svg-icon-text-widget-0.0.31.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyqt-svg-icon-text-widget 0.0.31
File Interpreter ABI Platform
pyqt_svg_icon_text_widget-0.0.31-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / pyqt-svg-icon-text-widget-0.0.31.tar.gz

Download URL pyqt-svg-icon-text-widget-0.0.31.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
af82e076be25ea6b1519ce08ebcd78a8dd2b24f18281e5d3ce17975117248a90
BLAKE2b-256 checksum
How to use checksums
e1cba30e1bf6834b50f17d9cea7e34bf6f227d7d1aa75d0c7ced9ae357120781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release files / pyqt_svg_icon_text_widget-0.0.31-py3-none-any.whl

Download URL pyqt_svg_icon_text_widget-0.0.31-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e42e2f80bac7cf1eeaa0467b75152364897ec8269ef6e9da6c56cbf4cf6b8969
BLAKE2b-256 checksum
How to use checksums
047e529f6cbb120b8b19da47ec2e19b1f67186979d01568f5d5930572b54cfd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.31 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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