Navigation

  • index
  • modules |
  • Schrödinger Python API 2025-2 documentation »
  • schrodinger.ui.qt.standard_widgets.hyperlink module

schrodinger.ui.qt.standard_widgets.hyperlink module¶

class schrodinger.ui.qt.standard_widgets.hyperlink.SimpleLink(*args, **kwargs)¶

Bases: _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: QPaintEvent) → None¶

This function does the same thing as the C++ code except it forces the menu indicator to be drawn.

sizeHint() → 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: ButtonWithArrowMixin, _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: _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: ButtonWithArrowMixin, MenuLink

Link button with arrow at right hand side.

class schrodinger.ui.qt.standard_widgets.hyperlink.TabHeaderLink(*args, **kwargs)¶

Bases: _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.

Quick search

Navigation

  • index
  • modules |
  • Schrödinger Python API 2025-2 documentation »
  • schrodinger.ui.qt.standard_widgets.hyperlink module
© Copyright 2025 Schrödinger, LLC. Created using Sphinx 5.1.1.