schrodinger.ui.qt.tooltips module¶
- schrodinger.ui.qt.tooltips.tooltip_for_aa(aa)¶
Generate a tooltip for non-standard residue amino acid.
- Parameters
aa (nonstandard_residues.AminoAcid) – non-standard residue amino acid
- Returns
html string to be used as tooltip
- Return type
str
- class schrodinger.ui.qt.tooltips.TooltipMixin(*args, offset=None, **kwargs)¶
Bases:
object
Mixin for converting widgets to tooltips. Contains basic functionality for showing the tooltip near the mouse cursor (plus an offset).
Concrete subclasses must also inherit from
QWidget
or a subclass.- __init__(*args, offset=None, **kwargs)¶
- Parameters
offset (tuple[int, int] or NoneType) – offset coordinates (in pixels) from the mouse pointer position to draw the upper left corner of the tooltip window. If not supplied, will default to
DEFAULT_OFFSET
.
- show()¶
Show this widget at the cursor location plus an offset.
- class schrodinger.ui.qt.tooltips.LabelTooltip(*args, offset=None, **kwargs)¶
Bases:
schrodinger.ui.qt.tooltips.TooltipMixin
,PyQt6.QtWidgets.QLabel