schrodinger.application.livedesign.maestro_sync module

class schrodinger.application.livedesign.maestro_sync.EntrySelectionMaestroSync(*args, **kwargs)

Bases: schrodinger.maestro_utils.maestro_sync.BaseMaestroSync, PyQt6.QtCore.QObject

Keep track of the project entry selection state. If it changes, emit a signal.

entrySelectionChanged
__init__(*args, **kwargs)
onProjectUpdated()

Callback method for project update events. Should be overridden in concrete subclasses to add functionality.

updateSelectedEntries()

Update the cached list of selected entry IDs with the current set of selected entry IDs in the project.

Returns

whether the cached entry ID list needed to be updated

Return type

bool

addHoverCallback(callback_fn)

Add function to list of “hover” callbacks.

Parameters

callback_fn (Callable) – the function to add. This function should expect to receive a single parameter of type int. The parameter represents the number of the atom which the mouse is currently resting over (or an invalid index if 0—see mm.mmct_valid_atom)

addProjectCloseCallback(callback_fn)

Add function to list of “project closed” callbacks.

Parameters

callback_fn (Callable) – the function to add

addProjectUpdateCallback(callback_fn)

Add function to list of “project updated” callbacks.

Parameters

callback_fn (Callable) – the function to add

addWorkspaceChangeCallback(callback_fn)

Add function to list of “workspace changed” callbacks.

Parameters

callback_fn (Callable) – the function to add

blockSignals(self, b: bool) bool
childEvent(self, a0: QChildEvent)
children(self) List[QObject]
connectNotify(self, signal: QMetaMethod)
customEvent(self, a0: QEvent)
deleteLater(self)
destroyed

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

disconnect(a0: QMetaObject.Connection) bool
disconnect(self) None
disconnectNotify(self, signal: QMetaMethod)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) List[QByteArray]
event(self, a0: QEvent) bool
eventFilter(self, a0: QObject, a1: QEvent) bool
findChild(self, type: type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
findChild(self, types: Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
findChildren(self, type: type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
findChildren(self, types: Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
findChildren(self, type: type, re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
findChildren(self, types: Tuple, re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
inherits(self, classname: str) bool
installEventFilter(self, a0: QObject)
isSignalConnected(self, signal: QMetaMethod) bool
isWidgetType(self) bool
isWindowType(self) bool
killTimer(self, id: int)
metaObject(self) QMetaObject
moveToThread(self, thread: QThread)
objectName(self) str
objectNameChanged

objectNameChanged(self, objectName: str) [signal]

onProjectClosed()

Callback method for project close events. Should be overridden in concrete subclasses to add functionality.

onWorkspaceChanged(what_changed)

Callback method for workspace change events. Should be overridden in concrete subclasses to add functionality.

Parameters

what_changed (str) – the kind of change that occurred in the Workspace; will be one of the WORKSPACE_CHANGED_ constants in maestro.py

parent(self) QObject
property(self, name: 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, signal: PYQT_SIGNAL) int
removeEventFilter(self, a0: QObject)
sender(self) QObject
senderSignalIndex(self) int
setCallbacksActive(active)

Register or deregister all callbacks. When activating, call all “project updated” callbacks.

Parameters

active (bool) – whether to register or deregister callbacks with Maestro

setObjectName(self, name: str)
setParent(self, a0: QObject)
setProperty(self, name: str, value: Any) bool
signalsBlocked(self) bool
startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int
staticMetaObject = <PyQt6.QtCore.QMetaObject object>
suspendCallbacks()

Context manager to temporarily disable Maestro callbacks.

thread(self) QThread
timerEvent(self, a0: QTimerEvent)
tr(sourceText: str, disambiguation: typing.Optional[str] = None, n: int = - 1) str