
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
pyqt-description-tooltip
Advanced tools
PyQt QToolTip that user can add description and so on.
python -m pip install pyqt-description-tooltip
You can get the qt tooltip text using static method below.
DescriptionToolTipGetter.getToolTip(title: str = '', shortcut: str = '', description: str = '',
shortcut_color: str = '#AAA', description_color: str = '#AAA')
Code Sample
from PyQt5.QtWidgets import QMainWindow, QPushButton, QApplication
from pyqt_description_tooltip import DescriptionToolTipGetter
from pyqt_style_setter import StyleSetter
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
btn = QPushButton('ToolTip Button')
btn.setToolTip(DescriptionToolTipGetter.getToolTip(title='ToolTip Title', shortcut='Ctrl+T',
description='ToolTip Description.',))
self.setCentralWidget(btn)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
example = MainWindow()
StyleSetter.setWindowStyle(example)
# https://github.com/yjg30737/pyqt-style-setter.git
example.show()
app.exec_()
Result

FAQs
PyQt QToolTip that user can add description and so on.
We found that pyqt-description-tooltip 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.