schrodinger.ui.qt.standard_widgets.buttons module¶
Module containing classes for buttons styled for use in Schrodinger panels.
Apply a Schrodinger color scheme CSS to the given QPushButton object.
Parameters: - button (QtWidgets.QPushButton) – Button to apply the styling to.
- highlighted (bool) – Whether the button should be highlighted with green background (e.g. used for enabled “Run” buttons).
Bases:
PyQt5.QtWidgets.QPushButton
A QPushButton that uses custom CSS, and offers ability to be “highlighted” with a green background (e.g. for Run buttons).
Initialize self. See help(type(self)) for accurate signature.
Whether to make the button background green, to make the button “jump out” to the user as the next likely action to take. Similar to a “default” button state (often used in dialog boxes), except that it doesn’t activate on pressing of the “Enter” key.
Bases:
int
Bases:
int
Bases:
sip.simplewrapper
QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)
Initialize self. See help(type(self)) for accurate signature.
childAt(self, int, int) -> QWidget
clicked(self, checked: bool = False) [signal]
customContextMenuRequested(self, QPoint) [signal]
destroyed(self, object: QObject = None) [signal]
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
grabMouse(self, Union[QCursor, Qt.CursorShape])
move(self, int, int)
objectNameChanged(self, str) [signal]
pressed(self) [signal]
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
released(self) [signal]
render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)
resize(self, int, int)
scroll(self, int, int, QRect)
setBaseSize(self, QSize)
setContentsMargins(self, QMargins)
setFixedSize(self, int, int)
setFocus(self, Qt.FocusReason)
setGeometry(self, int, int, int, int)
setMask(self, QRegion)
setMaximumSize(self, QSize)
setMinimumSize(self, QSize)
setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
setSizeIncrement(self, QSize)
setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
toggled(self, bool) [signal]
update(self, QRect) update(self, QRegion) update(self, int, int, int, int)
windowIconChanged(self, QIcon) [signal]
windowIconTextChanged(self, str) [signal]
windowTitleChanged(self, str) [signal]
Bases:
PyQt5.QtWidgets.QToolButton
A flat icon toolbutton. To use this, it’s necessary to call setIconPath with the appropriate path to get the icon to show up. If a different icon is to be used for hover/pressed states, call setHoverIconPath. The size of the icon can be specified using setIconSize_ (there is already a Qt setIconSize method on the class)
Initialize self. See help(type(self)) for accurate signature.
Bases:
int
Bases:
int
Bases:
sip.simplewrapper
QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)
Initialize self. See help(type(self)) for accurate signature.
Bases:
int
childAt(self, int, int) -> QWidget
clicked(self, checked: bool = False) [signal]
customContextMenuRequested(self, QPoint) [signal]
destroyed(self, object: QObject = None) [signal]
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
grabMouse(self, Union[QCursor, Qt.CursorShape])
move(self, int, int)
objectNameChanged(self, str) [signal]
pressed(self) [signal]
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
released(self) [signal]
render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)
resize(self, int, int)
scroll(self, int, int, QRect)
setBaseSize(self, QSize)
setContentsMargins(self, QMargins)
setFixedSize(self, int, int)
setFocus(self, Qt.FocusReason)
setGeometry(self, int, int, int, int)
setMask(self, QRegion)
setMaximumSize(self, QSize)
setMinimumSize(self, QSize)
setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
setSizeIncrement(self, QSize)
setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
toggled(self, bool) [signal]
triggered(self, QAction) [signal]
update(self, QRect) update(self, QRegion) update(self, int, int, int, int)
windowIconChanged(self, QIcon) [signal]
windowIconTextChanged(self, str) [signal]
windowTitleChanged(self, str) [signal]