Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
pyqt-svg-icon-text-widget
Advanced tools
PyQt widget consists of svg icon label and text label side by side
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.
python -m pip install pyqt-svg-icon-text-widget
setSvgFile(filename: str)
to set svg file
setText(text: str)
to set text
Svg icon QLabel
's maximum height is set according to text included QLabel
's font height.
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
FAQs
PyQt widget consists of svg icon label and text label side by side
We found that pyqt-svg-icon-text-widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.