schrodinger.application.livedesign.maestro_sync module¶
-
class
schrodinger.application.livedesign.maestro_sync.EntrySelectionMaestroSync(*args, **kwargs)[source]¶ Bases:
schrodinger.maestro_utils.maestro_sync.BaseMaestroSync,PyQt5.QtCore.QObjectKeep track of the project entry selection state. If it changes, emit a signal.
-
entrySelectionChanged¶
-
onProjectUpdated()[source]¶ Callback method for project update events. Should be overridden in concrete subclasses to add functionality.
-
updateSelectedEntries()[source]¶ 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 – 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) :type callback_fn: Callable
-
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, bool) → bool¶
-
childEvent(self, QChildEvent)¶
-
children(self) → List[QObject]¶
-
connectNotify(self, QMetaMethod)¶
-
customEvent(self, QEvent)¶
-
deleteLater(self)¶
-
destroyed¶ destroyed(self, object: QObject = None) [signal]
-
disconnect(self)¶
-
disconnectNotify(self, QMetaMethod)¶
-
dumpObjectInfo(self)¶
-
dumpObjectTree(self)¶
-
dynamicPropertyNames(self) → List[QByteArray]¶
-
event(self, QEvent) → bool¶
-
eventFilter(self, QObject, QEvent) → bool¶
-
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]
-
inherits(self, str) → bool¶
-
installEventFilter(self, QObject)¶
-
isSignalConnected(self, QMetaMethod) → bool¶
-
isWidgetType(self) → bool¶
-
isWindowType(self) → bool¶
-
killTimer(self, int)¶
-
metaObject(self) → QMetaObject¶
-
moveToThread(self, QThread)¶
-
objectName(self) → str¶
-
objectNameChanged¶ objectNameChanged(self, 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, 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¶
-
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, str)¶
-
setParent(self, QObject)¶
-
setProperty(self, str, Any) → bool¶
-
signalsBlocked(self) → bool¶
-
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int¶
-
staticMetaObject= <PyQt5.QtCore.QMetaObject object>¶
-
suspendCallbacks()¶ Context manager to temporarily disable Maestro callbacks.
-
thread(self) → QThread¶
-
timerEvent(self, QTimerEvent)¶
-
tr(self, str, disambiguation: str = None, n: int = - 1) → str¶
-