schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets module

class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets.ChargeConstraintsColumns[source]

Bases: object

HEADERS = ['Atom', 'ID', 'Entry Title', 'Charge']
NUM_COLS = 4
ATOMS = 0
ID = 1
TITLE = 2
CHARGE = 3
class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets.ChargeConstraintRow(entry_id=None, title=None, charge=None, weights=None)[source]

Bases: schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.base_widgets.SubTabRow

Data about a charge constraint setting

Variables

DEFAULT_WEIGHT (float) – default atom weight in charge constraint.

DEFAULT_WEIGHT = 1.0
__init__(entry_id=None, title=None, charge=None, weights=None)[source]

Initialize self. See help(type(self)) for accurate signature.

copy()[source]

Create a new row object that is a copy of this row

Return type

ChargeConstraintRow

Returns

A row item that is a copy of this row.

updateAtomNames(names)[source]

Change the atom names for this constraint

Parameters

names (list) – The list of atom names

weightsByNum()[source]

Get a dictionary of {atom index: atom weight}. (As opposed to weights, which is {atom name: atom weight})

Returns

Dictionary of {atom index: atom weight}

Return type

dict

getAtomNums()

Get a list of all atom numbers associated with this row (i.e. all atom to be marked by workspace markers). The default implementation checks for an atom_num or atom_nums attribute. Subclasses must redefine this function if neither of these attributes exist.

Returns

A list of atom numbers (relative to the entry, not the workspace structure)

Return type

list

getAtoms()

Get a list of all atoms associated with this row (i.e. all atom to be marked by workspace markers).

Returns

A list of schrodinger.structure._StructureAtom objects

Return type

list

getStructure()

Get the structure this row refers to

Returns

The structure

Return type

schrodinger.structure.Structure

class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets.ChargeConstraintsTableView(parent=None)[source]

Bases: schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.base_widgets.SubTabTableView

The view for the charge constraints.

COLUMN

alias of ChargeConstraintsColumns

MARKER_SETTINGS = {'alt_color': 'yellow', 'color': 'green'}
addJaguarMarker
removeJaguarMarker
__init__(parent=None)[source]

Initialize self. See help(type(self)) for accurate signature.

dataChanged(topleft, bottomright, role)[source]

If the atoms data in a selected cell changes, make sure that the newly created markers are highlighted

AboveItem = 1
AdjustIgnored = 0
AdjustToContents = 2
AdjustToContentsOnFirstShow = 1
AllEditTriggers = 31
AnimatingState = 6
AnyKeyPressed = 16
BelowItem = 2
Box = 1
CollapsingState = 5
ContiguousSelection = 4
CurrentChanged = 1
class CursorAction

Bases: int

DoubleClicked = 2
DragDrop = 3
class DragDropMode

Bases: int

DragOnly = 1
DragSelectingState = 2
DraggingState = 1
DrawChildren = 2
DrawWindowBackground = 1
class DropIndicatorPosition

Bases: int

DropOnly = 2
EditKeyPressed = 8
class EditTrigger

Bases: int

class EditTriggers

Bases: sip.simplewrapper

QAbstractItemView.EditTriggers(Union[QAbstractItemView.EditTriggers, QAbstractItemView.EditTrigger]) QAbstractItemView.EditTriggers(QAbstractItemView.EditTriggers)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

EditingState = 3
EnsureVisible = 0
ExpandingState = 4
ExtendedSelection = 3
HLine = 4
IgnoreMask = 4
InternalMove = 4
MARGIN = 20
MoveDown = 1
MoveEnd = 5
MoveHome = 4
MoveLeft = 2
MoveNext = 8
MovePageDown = 7
MovePageUp = 6
MovePrevious = 9
MoveRight = 3
MoveUp = 0
MultiSelection = 2
NoDragDrop = 0
NoEditTriggers = 0
NoFrame = 0
NoSelection = 0
NoState = 0
OnItem = 0
OnViewport = 3
class PaintDeviceMetric

Bases: int

Panel = 2
PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
Plain = 16
PositionAtBottom = 2
PositionAtCenter = 3
PositionAtTop = 1
Raised = 32
class RenderFlag

Bases: int

class RenderFlags

Bases: sip.simplewrapper

QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

SAMPLE_DATA = {}
class ScrollHint

Bases: int

class ScrollMode

Bases: int

ScrollPerItem = 0
ScrollPerPixel = 1
SelectColumns = 2
SelectItems = 0
SelectRows = 1
SelectedClicked = 4
class SelectionBehavior

Bases: int

class SelectionMode

Bases: int

class Shadow

Bases: int

Shadow_Mask = 240
class Shape

Bases: int

Shape_Mask = 15
SingleSelection = 1
class SizeAdjustPolicy

Bases: int

class State

Bases: int

class StyleMask

Bases: int

StyledPanel = 6
Sunken = 48
VLine = 5
WinPanel = 3
acceptDrops(self) → bool
accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
activated

activated(self, QModelIndex) [signal]

addAction(self, QAction)
addActions(self, Iterable[QAction])
addScrollBarWidget(self, QWidget, Union[Qt.Alignment, Qt.AlignmentFlag])
adjustSize(self)
alternatingRowColors(self) → bool
autoFillBackground(self) → bool
autoScrollMargin(self) → int
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
changeEvent(self, QEvent)
childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

childEvent(self, QChildEvent)
children(self) → List[QObject]
childrenRect(self) → QRect
childrenRegion(self) → QRegion
clearFocus(self)
clearMask(self)
clearSelection(self)
clearSpans(self)
clicked

clicked(self, QModelIndex) [signal]

close(self) → bool
closeEditor(self, QWidget, QAbstractItemDelegate.EndEditHint)
closeEvent(self, QCloseEvent)
closePersistentEditor(self, QModelIndex)
colorCount(self) → int
columnAt(self, int) → int
ChargeConstraintsTableView.columnCountChanged(self, int, int)
ChargeConstraintsTableView.columnMoved(self, int, int, int)
ChargeConstraintsTableView.columnResized(self, int, int, int)
ChargeConstraintsTableView.columnSpan(self, int, int) -> int
columnViewportPosition(self, int) → int
columnWidth(self, int) → int
commitData(self, QWidget)
commitDataToSelected(editor, index, delegate)

Commit data to all selected cells in the column that is currently being edited.

Parameters
  • editor (PyQt5.QtWidgets.QWidget) – The editor being used to enter data

  • index (PyQt5.QtCore.QModelIndex) – The index being edited

  • delegate (PyQt5.QtWidgets.QAbstractItemDelegate) – The delegate used to create the editor

connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
cornerWidget(self) → QWidget
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget
ChargeConstraintsTableView.currentChanged(self, QModelIndex, QModelIndex)
currentIndex(self) → QModelIndex
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)
defaultDropAction(self) → Qt.DropAction
deleteLater(self)
depth(self) → int
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
destroyed

destroyed(self, object: QObject = None) [signal]

devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
dirtyRegionOffset(self) → QPoint
disconnect(self)
disconnectNotify(self, QMetaMethod)
doubleClicked

doubleClicked(self, QModelIndex) [signal]

dragDropMode(self) → QAbstractItemView.DragDropMode
dragDropOverwriteMode(self) → bool
dragEnabled(self) → bool
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
drawFrame(self, QPainter)
dropEvent(self, QDropEvent)
dropIndicatorPosition(self) → QAbstractItemView.DropIndicatorPosition
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
edit(self, QModelIndex)

edit(self, QModelIndex, QAbstractItemView.EditTrigger, QEvent) -> bool

editTriggers(self) → QAbstractItemView.EditTriggers
editorDestroyed(self, QObject)
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
entered

entered(self, QModelIndex) [signal]

event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
executeDelayedItemsLayout(self)
find(sip.voidptr) → QWidget
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[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]

focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusPreviousChild(self) → bool
focusProxy(self) → QWidget
focusWidget(self) → QWidget
font(self) → QFont
fontInfo(self) → QFontInfo
fontMetrics(self) → QFontMetrics
foregroundRole(self) → QPalette.ColorRole
frameGeometry(self) → QRect
frameRect(self) → QRect
frameShadow(self) → QFrame.Shadow
frameShape(self) → QFrame.Shape
frameSize(self) → QSize
frameStyle(self) → int
frameWidth(self) → int
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) → QPixmap
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabMouse(self)

grabMouse(self, Union[QCursor, Qt.CursorShape])

grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsProxyWidget(self) → QGraphicsProxyWidget
gridStyle(self) → Qt.PenStyle
hasAutoScroll(self) → bool
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideColumn(self, int)
hideEvent(self, QHideEvent)
hideRow(self, int)
horizontalHeader(self) → QHeaderView
horizontalOffset(self) → int
horizontalScrollBar(self) → QScrollBar
horizontalScrollBarPolicy(self) → Qt.ScrollBarPolicy
horizontalScrollMode(self) → QAbstractItemView.ScrollMode
horizontalScrollbarAction(self, int)
horizontalScrollbarValueChanged(self, int)
iconSize(self) → QSize
iconSizeChanged

iconSizeChanged(self, QSize) [signal]

indexAt(self, QPoint) → QModelIndex
indexWidget(self, QModelIndex) → QWidget
inherits(self, str) → bool
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionFrame)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
ChargeConstraintsTableView.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isColumnHidden(self, int) → bool
isCornerButtonEnabled(self) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isIndexHidden(self, QModelIndex) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isPersistentEditorOpen(self, QModelIndex) → bool
isRightToLeft(self) → bool
isRowHidden(self, int) → bool
isSignalConnected(self, QMetaMethod) → bool
isSortingEnabled(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
itemDelegate(self) → QAbstractItemDelegate

itemDelegate(self, QModelIndex) -> QAbstractItemDelegate

itemDelegateForColumn(self, int) → QAbstractItemDelegate
itemDelegateForRow(self, int) → QAbstractItemDelegate
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
keyboardSearch(self, str)
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
lineWidth(self) → int
locale(self) → QLocale
logicalDpiX(self) → int
logicalDpiY(self) → int
lower(self)
mapFrom(self, QWidget, QPoint) → QPoint
mapFromGlobal(self, QPoint) → QPoint
mapFromParent(self, QPoint) → QPoint
mapTo(self, QWidget, QPoint) → QPoint
mapToGlobal(self, QPoint) → QPoint
mapToParent(self, QPoint) → QPoint
mask(self) → QRegion
maximumHeight(self) → int
maximumSize(self) → QSize
maximumViewportSize(self) → QSize
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
midLineWidth(self) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
model(self) → QAbstractItemModel
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(event)

Create the popup menu when the user right clicks

move(self, QPoint)

move(self, int, int)

moveCursor(self, QAbstractItemView.CursorAction, Union[Qt.KeyboardModifiers, Qt.KeyboardModifier]) → QModelIndex
moveEvent(self, QMoveEvent)
moveToThread(self, QThread)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
nativeParentWidget(self) → QWidget
nextInFocusChain(self) → QWidget
normalGeometry(self) → QRect
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

openPersistentEditor(self, QModelIndex)
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintEvent(self, QPaintEvent)
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
pressed

pressed(self, QModelIndex) [signal]

previousInFocusChain(self) → QWidget
property(self, str) → Any
pyqtConfigure(...)

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.

raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeEventFilter(self, QObject)
removeSelectedRows()

Remove the currently selected rows from the table

render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))

render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))

repaint(self)

repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)

reset(self)
resetHorizontalScrollMode(self)
resetVerticalScrollMode(self)
resize(self, QSize)

resize(self, int, int)

resizeColumnToContents(self, int)
resizeColumnsToContents(self)
resizeEvent(self, QResizeEvent)
resizeRowToContents(self, int)
resizeRowsToContents(self)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
rootIndex(self) → QModelIndex
rowAt(self, int) → int
ChargeConstraintsTableView.rowCountChanged(self, int, int)
rowHeight(self, int) → int
ChargeConstraintsTableView.rowMoved(self, int, int, int)
ChargeConstraintsTableView.rowResized(self, int, int, int)
ChargeConstraintsTableView.rowSpan(self, int, int) -> int
rowViewportPosition(self, int) → int
ChargeConstraintsTableView.rowsAboutToBeRemoved(self, QModelIndex, int, int)
ChargeConstraintsTableView.rowsInserted(self, QModelIndex, int, int)
saveGeometry(self) → QByteArray
scheduleDelayedItemsLayout(self)
ChargeConstraintsTableView.scroll(self, int, int)

scroll(self, int, int, QRect)

scrollBarWidgets(self, Union[Qt.Alignment, Qt.AlignmentFlag]) → List[QWidget]
ChargeConstraintsTableView.scrollContentsBy(self, int, int)
ChargeConstraintsTableView.scrollDirtyRegion(self, int, int)
scrollTo(self, QModelIndex, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)
scrollToBottom(self)
scrollToTop(self)
selectAll(self)
selectColumn(self, int)
selectRow(self, int)
selectedIndexes(self) → List[QModelIndex]
selectionBehavior(self) → QAbstractItemView.SelectionBehavior
selectionChanged(new_sel, old_sel)

When the table selection changes, emit the appropriate signals to update marker highlighting.

Parameters
  • new_sel (PyQt5.QtCore.QItemSelection) – The new table selection

  • old_sel (PyQt5.QtCore.QItemSelection) – The previous table selection

selectionCommand(index, event=None)

Don’t update the current selection when using the keyboard to navigate or when clicking on a selected editable item.

Parameters
  • index (PyQt5.QtCore.QModelIndex) – The newly selected index

  • event (PyQt5.QtCore.QEvent) – The event that triggered the index change

Returns

A flag describing how the selection should be updated

Return type

int

selectionMode(self) → QAbstractItemView.SelectionMode
selectionModel(self) → QItemSelectionModel
sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAlternatingRowColors(self, bool)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setAutoScroll(self, bool)
setAutoScrollMargin(self, int)
setBackgroundRole(self, QPalette.ColorRole)
ChargeConstraintsTableView.setBaseSize(self, int, int)

setBaseSize(self, QSize)

setColumnHidden(self, int, bool)
ChargeConstraintsTableView.setColumnWidth(self, int, int)
ChargeConstraintsTableView.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCornerButtonEnabled(self, bool)
setCornerWidget(self, QWidget)
setCurrentIndex(self, QModelIndex)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDefaultDropAction(self, Qt.DropAction)
setDirtyRegion(self, QRegion)
setDisabled(self, bool)
setDragDropMode(self, QAbstractItemView.DragDropMode)
setDragDropOverwriteMode(self, bool)
setDragEnabled(self, bool)
setDropIndicatorShown(self, bool)
setEditTriggers(self, Union[QAbstractItemView.EditTriggers, QAbstractItemView.EditTrigger])
setEnabled(self, bool)
setFixedHeight(self, int)
setFixedSize(self, QSize)

setFixedSize(self, int, int)

setFixedWidth(self, int)
setFocus(self)

setFocus(self, Qt.FocusReason)

setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QWidget)
setFont(self, QFont)
setForegroundRole(self, QPalette.ColorRole)
setFrameRect(self, QRect)
setFrameShadow(self, QFrame.Shadow)
setFrameShape(self, QFrame.Shape)
setFrameStyle(self, int)
setGeometry(self, QRect)

setGeometry(self, int, int, int, int)

setGraphicsEffect(self, QGraphicsEffect)
setGridStyle(self, Qt.PenStyle)
setHidden(self, bool)
setHorizontalHeader(self, QHeaderView)
setHorizontalScrollBar(self, QScrollBar)
setHorizontalScrollBarPolicy(self, Qt.ScrollBarPolicy)
setHorizontalScrollMode(self, QAbstractItemView.ScrollMode)
setIconSize(self, QSize)
setIndexWidget(self, QModelIndex, QWidget)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setItemDelegate(self, QAbstractItemDelegate)
setItemDelegateForColumn(column, delegate, connect_selected=False)

Set the delegate for the specified column. Note that this function adds the optional connect_selected argument not present in the QTableView function.

Parameters
  • column (int) – The column to set the delegate for

  • delegate (PyQt5.QtWidgets.QAbstractItemDelegate) – The delegate to set

  • connect_selected (bool) – If True, the delegate’s commitDataToSelected signal will be connected

setItemDelegateForRow(self, int, QAbstractItemDelegate)
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLineWidth(self, int)
setLocale(self, QLocale)
setMarkerHighlighting
setMask(self, QBitmap)

setMask(self, QRegion)

setMaximumHeight(self, int)
ChargeConstraintsTableView.setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMidLineWidth(self, int)
setMinimumHeight(self, int)
ChargeConstraintsTableView.setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setModel(model)

After setting the model, resize the columns using the sample data and the header data provided by the model

See Qt documentation for an explanation of arguments

setMouseTracking(self, bool)
setObjectName(self, str)
setPalette(self, QPalette)
setParent(self, QWidget)

setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])

setProperty(self, str, Any) → bool
setRootIndex(self, QModelIndex)
ChargeConstraintsTableView.setRowHeight(self, int, int)
setRowHidden(self, int, bool)
setSelection(self, QRect, Union[QItemSelectionModel.SelectionFlags, QItemSelectionModel.SelectionFlag])
setSelectionBehavior(self, QAbstractItemView.SelectionBehavior)
setSelectionMode(self, QAbstractItemView.SelectionMode)
setSelectionModel(self, QItemSelectionModel)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setShowGrid(self, bool)
setSizeAdjustPolicy(self, QAbstractScrollArea.SizeAdjustPolicy)
ChargeConstraintsTableView.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)

setSortingEnabled(self, bool)
ChargeConstraintsTableView.setSpan(self, int, int, int, int)
setState(self, QAbstractItemView.State)
setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
setTabKeyNavigation(self, bool)
ChargeConstraintsTableView.setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setTextElideMode(self, Qt.TextElideMode)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
setVerticalHeader(self, QHeaderView)
setVerticalScrollBar(self, QScrollBar)
setVerticalScrollBarPolicy(self, Qt.ScrollBarPolicy)
setVerticalScrollMode(self, QAbstractItemView.ScrollMode)
setViewport(self, QWidget)
ChargeConstraintsTableView.setViewportMargins(self, int, int, int, int)

setViewportMargins(self, QMargins)

setVisible(self, bool)
setWhatsThis(self, str)
setWindowFilePath(self, str)
setWindowFlag(self, Qt.WindowType, on: bool = True)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
setWindowIcon(self, QIcon)
setWindowIconText(self, str)
setWindowModality(self, Qt.WindowModality)
setWindowModified(self, bool)
setWindowOpacity(self, float)
setWindowRole(self, str)
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
setWindowTitle(self, str)
setWordWrap(self, bool)
setupViewport(self, QWidget)
sharedPainter(self) → QPainter
show(self)
showColumn(self, int)
showDropIndicator(self) → bool
showEvent(self, QShowEvent)
showFullScreen(self)
showGrid(self) → bool
showMaximized(self)
showMinimized(self)
showNormal(self)
showRow(self, int)
signalsBlocked(self) → bool
size(self) → QSize
sizeAdjustPolicy(self) → QAbstractScrollArea.SizeAdjustPolicy
sizeHint(self) → QSize
sizeHintForColumn(col_num)

Provide a size hint for the specified column using the sample data. Note that this method does not take header width into account as the header width is already accounted for in resizeColumnToContents.

See Qt documentation for an explanation of arguments and return value

sizeHintForIndex(self, QModelIndex) → QSize
sizeHintForRow(self, int) → int
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
sortByColumn(self, int, Qt.SortOrder)
stackUnder(self, QWidget)
startDrag(self, Union[Qt.DropActions, Qt.DropAction])
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
state(self) → QAbstractItemView.State
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabKeyNavigation(self) → bool
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
textElideMode(self) → Qt.TextElideMode
thread(self) → QThread
timerEvent(self, QTimerEvent)
toolTip(self) → str
toolTipDuration(self) → int
tr(self, str, disambiguation: str = None, n: int = - 1) → str
underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

update(self, QModelIndex)

updateEditorData(self)
updateEditorGeometries(self)
updateGeometries(self)
updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
verticalHeader(self) → QHeaderView
verticalOffset(self) → int
verticalScrollBar(self) → QScrollBar
verticalScrollBarPolicy(self) → Qt.ScrollBarPolicy
verticalScrollMode(self) → QAbstractItemView.ScrollMode
verticalScrollbarAction(self, int)
verticalScrollbarValueChanged(self, int)
viewOptions(self) → QStyleOptionViewItem
viewport(self) → QWidget
viewportEntered

viewportEntered(self) [signal]

viewportEvent(self, QEvent) → bool
viewportMargins(self) → QMargins
viewportSizeHint(self) → QSize
visibleRegion(self) → QRegion
visualRect(self, QModelIndex) → QRect
visualRegionForSelection(self, QItemSelection) → QRegion
whatsThis(self) → str
wheelEvent(self, QWheelEvent)
width(self) → int
widthMM(self) → int
winId(self) → sip.voidptr
window(self) → QWidget
windowFilePath(self) → str
windowFlags(self) → Qt.WindowFlags
windowHandle(self) → QWindow
windowIcon(self) → QIcon
windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self) → str
windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self) → Qt.WindowModality
windowOpacity(self) → float
windowRole(self) → str
windowState(self) → Qt.WindowStates
windowTitle(self) → str
windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self) → Qt.WindowType
wordWrap(self) → bool
x(self) → int
y(self) → int
class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets.ChargeConstraintsModel(parent=None)[source]

Bases: schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.base_widgets.SubTabModel

COLUMN

alias of ChargeConstraintsColumns

UNEDITABLE = (1, 2)
ROW_CLASS

alias of ChargeConstraintRow

MARKER_SETTINGS = {'alt_color': 'yellow', 'color': 'green'}
addJaguarMarkerForRow(row)[source]

Add a workspace marker for the given row. Subclasses must override this class if they require more than one workspace marker per row. Note that any given set of atom(s) may only have one marker per sub-tab. The sub-tab is responsible for ensuring that a marker is not added to a set of atom(s) that already has a marker.

Parameters

row (SubTabRow) – The row to add the marker for

removeJaguarMarkerForRow(row)[source]

Remove the workspace marker for the given row. Subclasses must override this class if they create more than one workspace marker per row.

Parameters

row (SubTabRow) – The row to remove the marker for

copyRow(row)[source]

Copy row into a new row in this model

Parameters

row (ChargeConstraintRow) – The row item containing the data to copy

class CheckIndexOption(value)

Bases: enum.IntEnum

An enumeration.

DoNotUseParent = 2
IndexIsValid = 1
NoOption = 0
ParentIsInvalid = 4
class CheckIndexOptions

Bases: sip.simplewrapper

QAbstractItemModel.CheckIndexOptions(Union[QAbstractItemModel.CheckIndexOptions, QAbstractItemModel.CheckIndexOption]) QAbstractItemModel.CheckIndexOptions(QAbstractItemModel.CheckIndexOptions)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

ERROR_BACKGROUND_BRUSH = <PyQt5.QtGui.QBrush object>
HorizontalSortHint = 2
class LayoutChangeHint

Bases: int

NoLayoutChangeHint = 0
VerticalSortHint = 1
__init__(parent=None)

Initialize self. See help(type(self)) for accurate signature.

addJaguarMarker
addRow(*args, **kwargs)

Add a row to the table. All arguments are passed to ROW_CLASS initialization.

Returns

The row number of the new row

Return type

int

appendFromModel(model)

Append the rows of model to this model

Parameters

model (subclass of SubTabModel) – The model to copy data from, should be the same subclass as this object

ChargeConstraintsModel.beginInsertColumns(self, QModelIndex, int, int)
ChargeConstraintsModel.beginInsertRows(self, QModelIndex, int, int)
ChargeConstraintsModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
ChargeConstraintsModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
ChargeConstraintsModel.beginRemoveColumns(self, QModelIndex, int, int)
ChargeConstraintsModel.beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
blockSignals(self, bool) → bool
buddy(self, QModelIndex) → QModelIndex
canDropMimeData(self, QMimeData, Qt.DropAction, int, int, QModelIndex) → bool
canFetchMore(self, QModelIndex) → bool
ChargeConstraintsModel.changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
checkIndex(self, QModelIndex, options: Union[QAbstractItemModel.CheckIndexOptions, QAbstractItemModel.CheckIndexOption] = QAbstractItemModel.CheckIndexOption.NoOption) → bool
childEvent(self, QChildEvent)
children(self) → List[QObject]
clearDataForEid(eid)

Clear all data related to the specified entry ID

Parameters

eid (str) – The entry id

columnCount(self, parent: QModelIndex = QModelIndex()) → int
columnsAboutToBeInserted

columnsAboutToBeInserted(self, QModelIndex, int, int) [signal]

columnsAboutToBeMoved

columnsAboutToBeMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]

columnsAboutToBeRemoved

columnsAboutToBeRemoved(self, QModelIndex, int, int) [signal]

columnsInserted

columnsInserted(self, QModelIndex, int, int) [signal]

columnsMoved

columnsMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]

columnsRemoved

columnsRemoved(self, QModelIndex, int, int) [signal]

connectNotify(self, QMetaMethod)
ChargeConstraintsModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
customEvent(self, QEvent)
data(self, QModelIndex, role: int = Qt.DisplayRole) → Any
dataChanged

dataChanged(self, QModelIndex, QModelIndex, roles: Iterable[int] = []) [signal]

ChargeConstraintsModel.decodeData(self, int, int, QModelIndex, QDataStream) -> bool
deleteLater(self)
destroyed

destroyed(self, object: QObject = None) [signal]

disconnect(self)
disconnectNotify(self, QMetaMethod)
dropMimeData(self, QMimeData, Qt.DropAction, int, int, QModelIndex) → bool
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
encodeData(self, Iterable[QModelIndex], QDataStream)
endInsertColumns(self)
endInsertRows(self)
endMoveColumns(self)
endMoveRows(self)
endRemoveColumns(self)
endRemoveRows(self)
endResetModel(self)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
fetchMore(self, QModelIndex)
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[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]

flags(index)

Flag columns in UNEDITABLE as uneditable.

See Qt documentation for an explanation of arguments and return value

hasChildren(self, parent: QModelIndex = QModelIndex()) → bool
ChargeConstraintsModel.hasIndex(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
headerData(self, int, Qt.Orientation, role: int = Qt.DisplayRole) → Any
headerDataChanged

headerDataChanged(self, Qt.Orientation, int, int) [signal]

ChargeConstraintsModel.index(self, int, int, parent: QModelIndex = QModelIndex()) -> QModelIndex
inherits(self, str) → bool
insertColumn(self, int, parent: QModelIndex = QModelIndex()) → bool
ChargeConstraintsModel.insertColumns(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
insertRow(self, int, parent: QModelIndex = QModelIndex()) → bool
ChargeConstraintsModel.insertRows(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
installEventFilter(self, QObject)
isSignalConnected(self, QMetaMethod) → bool
isWidgetType(self) → bool
isWindowType(self) → bool
itemData(self, QModelIndex) → Dict[int, Any]
killTimer(self, int)
layoutAboutToBeChanged

layoutAboutToBeChanged(self, parents: Iterable[QPersistentModelIndex] = [], hint: QAbstractItemModel.LayoutChangeHint = QAbstractItemModel.NoLayoutChangeHint) [signal]

layoutChanged

layoutChanged(self, parents: Iterable[QPersistentModelIndex] = [], hint: QAbstractItemModel.LayoutChangeHint = QAbstractItemModel.NoLayoutChangeHint) [signal]

match(self, QModelIndex, int, Any, hits: int = 1, flags: Union[Qt.MatchFlags, Qt.MatchFlag] = Qt.MatchStartsWith | Qt.MatchWrap) → List[QModelIndex]
metaObject(self) → QMetaObject
mimeData(self, Iterable[QModelIndex]) → QMimeData
mimeTypes(self) → List[str]
modelAboutToBeReset

modelAboutToBeReset(self) [signal]

modelReset

modelReset(self) [signal]

ChargeConstraintsModel.moveColumn(self, QModelIndex, int, QModelIndex, int) -> bool
ChargeConstraintsModel.moveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
ChargeConstraintsModel.moveRow(self, QModelIndex, int, QModelIndex, int) -> bool
ChargeConstraintsModel.moveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
moveToThread(self, QThread)
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

parent(self) → QObject
persistentIndexList(self) → List[QModelIndex]
property(self, str) → Any
pyqtConfigure(...)

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.

receivers(self, PYQT_SIGNAL) → int
removeColumn(self, int, parent: QModelIndex = QModelIndex()) → bool
ChargeConstraintsModel.removeColumns(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
removeEventFilter(self, QObject)
removeJaguarMarker
removeRow(self, int, parent: QModelIndex = QModelIndex()) → bool
ChargeConstraintsModel.removeRows(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
reset()
resetInternalData(self)
revert(self)
roleNames(self) → Dict[int, QByteArray]
rowCount(self, parent: QModelIndex = QModelIndex()) → int
rowsAboutToBeInserted

rowsAboutToBeInserted(self, QModelIndex, int, int) [signal]

rowsAboutToBeMoved

rowsAboutToBeMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]

rowsAboutToBeRemoved

rowsAboutToBeRemoved(self, QModelIndex, int, int) [signal]

rowsForEid(eid)

Get all rows that refer to the specified entry ID

Parameters

eid (str) – The entry id

Returns

A list of ROW_CLASS objects

Return type

list

rowsInserted

rowsInserted(self, QModelIndex, int, int) [signal]

rowsMoved

rowsMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]

rowsRemoved

rowsRemoved(self, QModelIndex, int, int) [signal]

sender(self) → QObject
senderSignalIndex(self) → int
setData(index, value, role=2)

Set data for the specified index and role. Whenever possible, sub- classes should redefine _setData rather than this method.

See Qt documentation for an explanation of arguments and return value.

setHeaderData(self, int, Qt.Orientation, Any, role: int = Qt.EditRole) → bool
setItemData(self, QModelIndex, Dict[int, Any]) → bool
setObjectName(self, str)
setParent(self, QObject)
setProperty(self, str, Any) → bool
ChargeConstraintsModel.sibling(self, int, int, QModelIndex) -> QModelIndex
signalsBlocked(self) → bool
sort(self, int, order: Qt.SortOrder = Qt.AscendingOrder)
span(self, QModelIndex) → QSize
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
submit(self) → bool
supportedDragActions(self) → Qt.DropActions
supportedDropActions(self) → Qt.DropActions
thread(self) → QThread
timerEvent(self, QTimerEvent)
tr(self, str, disambiguation: str = None, n: int = - 1) → str
updateEntryTitles(eids_to_titles)

Update the entry titles in case they have changed in the project table

Parameters

eids_to_titles (dict) – A dictionary of {entry id: title}

class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets.AtomSelectionDelegate(parent)[source]

Bases: schrodinger.application.jaguar.gui.input_tab_widgets_pka.AtomSelectionDelegate

A delegate for selecting atoms for the charge constraint.

Note

We currently don’t allow the user to type in atom names. If the user doesn’t click on an atom in the workspace, then we have no way to determine which entry the constraint refers to. Invalid atoms names (i.e. those not in the form <element><index>) would also cause issues for the weights pop- up. Additionally, we’d have to add atom name validation to the model in order to color cells with errors and to give a tool tip explaining the problem, as is done for pKa atoms. We’d also have to implement validate() for the sub-tab. It would be possible to solve these issues, but for now we simply require that the user select atoms from the workspace.

Variables
  • addJaguarMarker (PyQt5.QtCore.pyqtSignal) –

    A signal emitted when a workspace marker should be added. Emitted with:

    • The list of atoms to add the marker for (list)

    • The index that the atom is being marked for. (Used to determine whether the marker should be highlighted or not.) (QtCore.QModelIndex)

  • removeJaguarMarker (PyQt5.QtCore.pyqtSignal) –

    A signal emitted when a workspace marker should be removed. Emitted with:

    • The list of atoms to remove the marker for (list)

MAESTRO_STATUS_MESSAGE = 'Pick an atom to be included in the charge constraint'
TOOL_TIP_INSTRUCTIONS = 'Click an atoms in the workspace to\nset them as a charge constraint atom.\nClick again to remove.'
TOOL_TIP_WRONG_EID = 'The atom you selected is not\npart of this structure.'
DEFAULT_DATA = {}
addJaguarMarker
removeJaguarMarker
__init__(parent)[source]

Initialize self. See help(type(self)) for accurate signature.

clearRowIfEmpty(editor, hint=None)[source]

When the editor closes, erase a row if it does not contain any atom names. Without any atom names, the row is meaningless. By clearing the rows immediately, we avoid the need to later warn the user about them.

Parameters
  • editor (PyQt5.QtWidgets.QLineEdit) – The recently-closed editor

  • hint – Ignored, but present for compatibility with the Qt signal

createEditor(parent, option, index)[source]

Create an editor as in the super-class, but mark it as read-only. See the :note in the class documentation for an explanation of why.

See Qt documentation for an explanation of arguments and return values

setModelData(editor, model, index)[source]

Before setting the model data, clear any workspace markers we have created and restore the markers to the model values. This avoids having the model trying to clear a marker that no longer exists, which would raise an exception.

See parent class and PyQt documentation for an explanation of arguments.

EditNextItem = 1
EditPreviousItem = 2
class EndEditHint

Bases: int

FONT = <PyQt5.QtGui.QFont object>
FOREGROUND = <PyQt5.QtGui.QBrush object>
MAESTRO_BANNER_ADD_H = 'Pick atoms to add a proton to'
MAESTRO_BANNER_REMOVE_H = 'Pick protons to be removed'
NoHint = 0
RevertModelCache = 4
SubmitModelCache = 3
blockSignals(self, bool) → bool
childEvent(self, QChildEvent)
children(self) → List[QObject]
closeEditor

closeEditor(self, QWidget, hint: QAbstractItemDelegate.EndEditHint = QAbstractItemDelegate.NoHint) [signal]

commitData

commitData(self, QWidget) [signal]

commitDataToSelected
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
deleteLater(self)
destroyEditor(self, QWidget, QModelIndex)
destroyed

destroyed(self, object: QObject = None) [signal]

disconnect(self)
disconnectNotify(self, QMetaMethod)
displayText(self, Any, QLocale) → str
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
editorEvent(self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex) → bool
event(self, QEvent) → bool
eventFilter(editor, event)[source]

Make sure that the editor doesn’t close when the user clicks on another window since that will prevent the user from being able to click on an atom.

Parameters
  • editor (PyQt5.QtWidgets.QWidget) – The pKa atom line edit

  • event – A Qt event

  • event – PyQt5.QtCore.QEvent

Note

We don’t need to worry about the case where the user clicks on a different widget in the pKa panel after selecting an atom. Since the editor was the last widget with focus in the pKa panel, it will receive another FocusOut event when the other widget receives focus, and that FocusOut event will cause the editor to close.

findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[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]

helpEvent(self, QHelpEvent, QAbstractItemView, QStyleOptionViewItem, QModelIndex) → bool
inherits(self, str) → bool
initStyleOption(self, QStyleOptionViewItem, QModelIndex)
installEventFilter(self, QObject)
isSignalConnected(self, QMetaMethod) → bool
isWidgetType(self) → bool
isWindowType(self) → bool
itemEditorFactory(self) → QItemEditorFactory
killTimer(self, int)
metaObject(self) → QMetaObject
moveToThread(self, QThread)
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

paint(painter, option, index)

If the DisplayRole data for index is empty, paint the default message instead.

See Qt documentation for an explanation of arguments.

parent(self) → QObject
property(self, str) → Any
pyqtConfigure(...)

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.

receivers(self, PYQT_SIGNAL) → int
removeEventFilter(self, QObject)
sender(self) → QObject
senderSignalIndex(self) → int
setEditorData(self, QWidget, QModelIndex)[source]
setItemEditorFactory(self, QItemEditorFactory)
setObjectName(self, str)
setParent(self, QObject)
setProperty(self, str, Any) → bool
set_pka_marker
signalsBlocked(self) → bool
sizeHint(self, QStyleOptionViewItem, QModelIndex) → QSize
sizeHintChanged

sizeHintChanged(self, QModelIndex) [signal]

startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
thread(self) → QThread
timerEvent(self, QTimerEvent)
tr(self, str, disambiguation: str = None, n: int = - 1) → str
updateEditorGeometry(self, QWidget, QStyleOptionViewItem, QModelIndex)
class schrodinger.application.jaguar.gui.tabs.sub_tab_widgets.charge_constraints_widgets.ChargeSelectorDelegate(parent)[source]

Bases: schrodinger.ui.qt.pop_up_widgets.PopUpDelegate

A delegate for selecting charge constraint atom weights.

__init__(parent)[source]
Parameters
  • parent (PyQt5.QtWidgets.QWidget) – The Qt parent widget

  • pop_up_class (type) – The class of the pop up widget. Should be a subclass of PopUp.

  • enable_accept_multi (bool) – Whether committing data to all selected cells at once is enabled. If True, commitDataToSelected will be emitted when the LineEditWithPopUp emits popUpClosing with ACCEPT_MULTI. If False, commitData will be emitted instead.

setEditorData(self, QWidget, QModelIndex)[source]
setModelData(self, QWidget, QAbstractItemModel, QModelIndex)[source]
EditNextItem = 1
EditPreviousItem = 2
class EndEditHint

Bases: int

NoHint = 0
RevertModelCache = 4
SubmitModelCache = 3
blockSignals(self, bool) → bool
childEvent(self, QChildEvent)
children(self) → List[QObject]
closeEditor

closeEditor(self, QWidget, hint: QAbstractItemDelegate.EndEditHint = QAbstractItemDelegate.NoHint) [signal]

commitData

commitData(self, QWidget) [signal]

commitDataToSelected
connectNotify(self, QMetaMethod)
createEditor(parent, option, index)

Create the editor and connect the popUpClosing signal. If a subclass needs to modify editor instantiation, _createEditor should be reimplemented instead of this function to ensure that the popUpClosing signal is connected properly.

See Qt documentation for an explanation of the arguments and return value.

customEvent(self, QEvent)
deleteLater(self)
destroyEditor(self, QWidget, QModelIndex)
destroyed

destroyed(self, object: QObject = None) [signal]

disconnect(self)
disconnectNotify(self, QMetaMethod)
displayText(self, Any, QLocale) → str
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
editorEvent(self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex) → bool
event(self, QEvent) → bool
eventFilter(editor, event)

Ignore the editor losing focus, since focus may be switching to one of the pop up widgets. If the editor including the popup loses focus, popUpClosed will be called.

See Qt documentation for an explanation of the arguments and return value.

findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[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]

helpEvent(self, QHelpEvent, QAbstractItemView, QStyleOptionViewItem, QModelIndex) → bool
inherits(self, str) → bool
initStyleOption(self, QStyleOptionViewItem, QModelIndex)
installEventFilter(self, QObject)
isSignalConnected(self, QMetaMethod) → bool
isWidgetType(self) → bool
isWindowType(self) → bool
itemEditorFactory(self) → QItemEditorFactory
killTimer(self, int)
metaObject(self) → QMetaObject
moveToThread(self, QThread)
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

paint(self, QPainter, QStyleOptionViewItem, QModelIndex)
parent(self) → QObject
popUpClosed(editor, accept)

Respond to the editor closing by either rejecting or accepting the data. If enable_accept_multi is True, the data may also be committed to all selected rows.

Parameters
  • editor (LineEditWithPopUp) – The editor that was just closed

  • accept (int) – The signal that was emitted by the editor when it closed

property(self, str) → Any
pyqtConfigure(...)

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.

receivers(self, PYQT_SIGNAL) → int
removeEventFilter(self, QObject)
sender(self) → QObject
senderSignalIndex(self) → int
setItemEditorFactory(self, QItemEditorFactory)
setObjectName(self, str)
setParent(self, QObject)
setProperty(self, str, Any) → bool
signalsBlocked(self) → bool
sizeHint(self, QStyleOptionViewItem, QModelIndex) → QSize
sizeHintChanged

sizeHintChanged(self, QModelIndex) [signal]

startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
thread(self) → QThread
timerEvent(self, QTimerEvent)
tr(self, str, disambiguation: str = None, n: int = - 1) → str
updateEditorGeometry(self, QWidget, QStyleOptionViewItem, QModelIndex)