Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyqt-svg-icon-text-widget

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyqt-svg-icon-text-widget

PyQt widget consists of svg icon label and text label side by side

  • 0.0.31
  • PyPI
  • Socket score

Maintainers
1

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

  • pyqt-svg-label

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc