pyqt-description-tooltip
PyQt QToolTip that user can add description and so on.
Setup
python -m pip install pyqt-description-tooltip
Usage
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')
Example
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
Metadata
Release files for pyqt-description-tooltip 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyqt-description-tooltip-0.0.1.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyqt_description_tooltip-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / pyqt-description-tooltip-0.0.1.tar.gz
| Download URL | pyqt-description-tooltip-0.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d50cb0a896c8af845d78bdc601b1c96524acd63cf14c431f4f23fe1a7865299f
|
|
BLAKE2b-256 checksum How to use checksums |
7b7d253cabff86fbcea1fe66a6e32eb8d0cf35d499613ce40620b8dfde31a1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_description_tooltip-0.0.1-py3-none-any.whl
| Download URL | pyqt_description_tooltip-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b17415d86126147b8562fa6eea5e87caae86062b0e28a0a3a046a5f3f674343
|
|
BLAKE2b-256 checksum How to use checksums |
de5748afbc16fe51c6d3e16ebce7c73398484bdf33a424589ac0f220cbb2799a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|