schrodinger.application.msv.gui.color_editor module¶
-
class
schrodinger.application.msv.gui.color_editor.ColorEditor(parent=None, scheme=None)¶ Bases:
PyQt5.QtWidgets.QWidgetAn editor for developing new color themes for MSV.
Variables: schemeChanged ( QtCore.pyqtSignalemitting aschrodinger.application.msv.gui.viewconstants.RowTypeand aschrodinger.application.msv.gui.color.RowColorScheme) – A signal emitted when the editor’s color scheme changes with the row type changed and the new scheme-
changeRowScheme()¶ Loads the current row scheme
-
colorEdited(color_change)¶
-
currentRowScheme()¶ Returns the current row scheme
-
loadScheme(scheme)¶
-
loadSchemeForRow(row_type)¶
-
schemeChanged¶
-
-
class
schrodinger.application.msv.gui.color_editor.QColorButton(key, parent=None, color=None)¶ Bases:
PyQt5.QtWidgets.QPushButtonA button for selecting colors.
-
colorChanged¶
-
edit¶ Return a formatted message for the edit selection
-
edited()¶ rtype: bool return: Whether the color has been edited
-
getColor()¶ Return the current color selection
Return type: QtGui.QColor
-
mousePressEvent(e)¶ Allow set on right click
-
onColorPicker()¶ Callback that shows a color editor for a specific value
-
reset()¶ Restore the original color
-
setColor(color)¶ Set the color on the selected element
Parameters: color ( QtGui.QColor) – The color for the element
-