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.
style (
StyledButton.Style
) – Style to use
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).
Bases:
enum.Enum
An enumeration.
Initialize self. See help(type(self)) for accurate signature.
Set the style of the button to one of available styles.
- Parameters
style – Style to use.
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])
-
StyledButton.insertAction(self, QAction, QAction)
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)
-
StyledButton.scroll(self, int, int)
scroll(self, int, int, QRect)
-
StyledButton.setBaseSize(self, int, int)
setBaseSize(self, QSize)
-
StyledButton.setContentsMargins(self, int, int, int, int)
setContentsMargins(self, QMargins)
setFixedSize(self, int, int)
setFocus(self, Qt.FocusReason)
setGeometry(self, int, int, int, int)
setMask(self, QRegion)
-
StyledButton.setMaximumSize(self, int, int)
setMaximumSize(self, QSize)
-
StyledButton.setMinimumSize(self, int, int)
setMinimumSize(self, QSize)
setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
-
StyledButton.setSizeIncrement(self, int, int)
setSizeIncrement(self, QSize)
setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
-
StyledButton.setTabOrder(QWidget, QWidget)
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])
-
FlatButton.insertAction(self, QAction, QAction)
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)
-
FlatButton.scroll(self, int, int)
scroll(self, int, int, QRect)
-
FlatButton.setBaseSize(self, int, int)
setBaseSize(self, QSize)
-
FlatButton.setContentsMargins(self, int, int, int, int)
setContentsMargins(self, QMargins)
setFixedSize(self, int, int)
setFocus(self, Qt.FocusReason)
setGeometry(self, int, int, int, int)
setMask(self, QRegion)
-
FlatButton.setMaximumSize(self, int, int)
setMaximumSize(self, QSize)
-
FlatButton.setMinimumSize(self, int, int)
setMinimumSize(self, QSize)
setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
-
FlatButton.setSizeIncrement(self, int, int)
setSizeIncrement(self, QSize)
setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
-
FlatButton.setTabOrder(QWidget, QWidget)
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]