--------
To use you will need to subclass Tooltip or TooltipWithArrow and implement the getWidget function::
>>> class MyTooltip(Tooltip):
>>> def getWidget(self):
>>> return MyQWidget()
getWidget should return the widget that you wish to be displayed as a tooltip.
Your tooltip will need a few parameters to initialize::
>>> my_tooltip = MyTooltip(hoverable_widget, list_of_positionings, main_window, gap=7)
**hoverable_widget** is the widget that will trigger the tooltip.
**list_of_positionings** is a list of tuples: (TooltipPositioning, TooltipAlignment).
**TooltipPositioning** can be one of Tooltips Macros: Tooltip.LEFT_POSITIONING, Tooltip.TOP_POSITIONING, Tooltip.RIGHT_POSITIONING or Tooltip.BOTTOM_POSITIONING
Positionings should be TooltipWithArrow.*_POSITIONING if you chose to subclass TooltipWithArrow.
**TooltipAlignment** should be one of the functions included in TooltipAlignment.
Therefore, a **list_of_positioning** could be: [(TooltipWithArrow.RIGHT_POSITIONING, alignToTop), (TooltipWithArrow.LEFT_POSITIONING, alignToTop)].
A Tooltip will always try to use the Positioning you chose in order and will not display at all if there is no room in the screen for it.
**main_window** is the window in which your tooltip will display. It is used to calculate the positioning and alignment.
**gap** is the space in pixels between the **hoverable_widget** and the **Tooltip**.
Metadata
Release files for pyside-tooltip 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| pyside-tooltip-0.2.1.zip | 16.5 kB | Without provenance | Details for pyside-tooltip-0.2.1.zip |
Release files / pyside-tooltip-0.2.1.zip
| Download URL | pyside-tooltip-0.2.1.zip |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82863089dde6b9510e21b8ba7c53c56bf9ad9295230eb3c367f5e52de297ec8c
|
|
BLAKE2b-256 checksum How to use checksums |
87d0852bbd2d690a6ce4e5d9f1b73b0f1e79a7319e3a13997482b75713ed3932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyside-tooltip 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.