schrodinger.ui.qt.standard_widgets.hyperlink module¶
- class schrodinger.ui.qt.standard_widgets.hyperlink.SimpleLink(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.standard_widgets.hyperlink._BaseLink
The simple link has no distinctions from the _BaseLink, and has no differences in styling.
- class schrodinger.ui.qt.standard_widgets.hyperlink.ButtonWithArrowMixin¶
Bases:
object
- paintEvent(a0: PyQt6.QtGui.QPaintEvent) None ¶
This function does the same thing as the C++ code except it forces the menu indicator to be drawn.
- sizeHint() PyQt6.QtCore.QSize ¶
Give the button extra space to make room for menu indicator. QPushButton only gives space for menu indicator when menu() returns an actual menu, which the ToggleLink will not.
- class schrodinger.ui.qt.standard_widgets.hyperlink.ToggleLink(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.standard_widgets.hyperlink.ButtonWithArrowMixin
,schrodinger.ui.qt.standard_widgets.hyperlink._BaseLink
A toggle link supports two states: on and off. It uses the different check states of a QPushButton to style the link differently. Most importantly, there is a chevron icon to the right of the link that points down when the link is unchecked and that points up when the link is checked. Often used to expand an area below the link.
- __init__(*args, **kwargs)¶
- class schrodinger.ui.qt.standard_widgets.hyperlink.MenuLink(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.standard_widgets.hyperlink._BaseLink
The menu link is designed to support a menu. The only difference between this link and the
_BaseLink
is styling. The styling differences are only applied when a menu is set to the button. When there is a menu, it has a unique pressed state that highlights the link and custom menu indicators.
- class schrodinger.ui.qt.standard_widgets.hyperlink.ArrowLink(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.standard_widgets.hyperlink.ButtonWithArrowMixin
,schrodinger.ui.qt.standard_widgets.hyperlink.MenuLink
Link button with arrow at right hand side.
- class schrodinger.ui.qt.standard_widgets.hyperlink.TabHeaderLink(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.standard_widgets.hyperlink._BaseLink
Used as tab header buttons. When disabled (button for current tab) it is rendered with black text with black underline, when enabled (non-current tab) it is rendered like a regular link, with blue text.