schrodinger.trajectory.trajectory_gui_dir.playertoolbar module

Trajectory viewer player toolbar.

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.unroll_pos(ct, rep_vec, xyz0, start_atom)

Set coordinates for all copies of the replicated CT.

FIXME: DESMOND-9705 should remove it.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.set_structure_atoms_entry_id(st: schrodinger.structure.structure.Structure, eid: int, start_atom: int, end_atom: int)

Update entry id of specified range of atoms in the structure.

Parameters:
  • st – Structure in which atoms needs to be updated.
  • eid – Entry id to be set.
  • start_atom – Starting atom in the structure to be updated. This atom

is also included when updating entry id.

Parameters:end_atom – Ending atom in the structure to be updated. This atom is

also included when updating entry id.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.get_workspace_structure_and_entry_total()
Returns:Return a tuple of workspace ct and entry total in the workspace

structure. :rtype: tuple(structure.Structure, int)

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.is_replica_atom_count(main_ct_atom_total: int, frame_ct_atom_total: int)

Whether the main_ct atom count is a result of number of atoms obtained by replicating frame_ct.

Parameters:
  • main_ct_atom_total – Main CT atom count to verify
  • frame_ct_atom_total – Frame ct atom count to be used for reference.
Return type:

bool

Returns:

Whether the main ct atom count is a perfect replication of frame

ct atom count.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.set_distance_cell_props(proj: schrodinger.project.project.Project, eid: int, box_values: schrodinger.infra.projectmodel.TriclinicBox)

Set distance cell properties value in the project for the given entry id. box_values represents ax, ay, az, bx, by, bz, cx, cy, cz respectively.

Return type:bool
Returns:True if values are set appropriately.
schrodinger.trajectory.trajectory_gui_dir.playertoolbar.get_distance_cell_props(proj: schrodinger.project.project.Project, eid: int)

Get distance cell properties value from the project for the given entry id.

Return type:list
Returns:schrodinger.infra.projectmodel.TriclinicBox on success.
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.ReferenceEntryStatistics(workspace_st: schrodinger.structure.structure.Structure, frame_st_entry_id: int, frame_st_atom_total: int, frame_st_replica_count: int)

Bases: object

A helper data class. It holds starting position of reference entry atom in the workspace structure, reference entry atom total, and entry id.

__init__(workspace_st: schrodinger.structure.structure.Structure, frame_st_entry_id: int, frame_st_atom_total: int, frame_st_replica_count: int)
Parameters:
  • workspace_st – Workspace structure. Expected exactly two entries in the workspace.
  • frame_st_entry_id – Frame structure associated entry id.
  • frame_st_atom_total – Atom total of the frame present in the workspace structure.
  • frame_st_replica_count – Number of replica of frame structure in the workspace strucuture.
reference_entry_included_first
Returns:True if reference entry is included first in the workspace.
Return type:bool
schrodinger.trajectory.trajectory_gui_dir.playertoolbar.compare_structures_connectivity(st1: schrodinger.structure.structure.Structure, st2: schrodinger.structure.structure.Structure)

Whether given structures have same connectivity between atoms. E.g. If at.n 1-2 is connected in st1, then same set of atoms must be connected in the st2 also.

Parameters:
  • st1 – Structure1 to compare
  • st2 – Structure2 to compare
Return type:

bool

Returns:

Whether both structures have same connectivity.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.get_entry_row_property_value(row: schrodinger.project.project.ProjectRow, prop_name: str)

Get project row’s property value.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.get_entry_row(proj: schrodinger.project.project.Project, eid: int)

Get project entry row.

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.get_entry_ct(proj: schrodinger.project.project.Project, eid: int, props: bool, copy: bool)

Provide entry structure corresponding to given entry id in the project.

Parameters:
  • proj – The current project.
  • eid – Entry id associated with current project.
  • props – True if properties should also be copied.
  • copy – True if new copy of entry structure is returned.
Returns:

Entry structure stored in the project.

Return type:

structure.Structure or None

schrodinger.trajectory.trajectory_gui_dir.playertoolbar.set_entry_ct(proj: schrodinger.project.project.Project, st: schrodinger.structure.structure.Structure, eid: int, props: bool, sync_workspace: bool, copy: bool)

Set entry structure corresponding to given entry id in the project.

Parameters:
  • proj – The current project.
  • st – Entry structure to be set.
  • eid – Entry id associated with current project.
  • props – True if properties should also be copied.
  • sync_workspace – Synchronize workspace as well.
  • copy – True if new copy of entry structure is returned.
Return type:

bool

Returns:

Whether the structure is set successfully in the project entry ct.

class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.MovieInterruptionType

Bases: enum.Enum

Type defining a save movie interruption type.

PAUSED = (0,)
CLOSED = 1
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.MovieInterruptionDialogRetCode

Bases: enum.Enum

Type defining a return code from save movie interruption warning dialog.

PARTIAL_SAVE = (0,)
RESUME = (1,)
CANCEL = 2
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.MovieExportInterruptionDialog(parent, interruption_type)

Bases: schrodinger.ui.qt.messagebox.MessageBox

A dialog that displays a warning when movie export operation is interrupted.

__init__(parent, interruption_type)
Parameters:
  • parent (QtWidgets.QWidget) – Parent widget of this dialog.
  • interruption_type (enum(MovieInterruptionType)) – Interruption source button.
exec_()

Show the warning dialog.

Return type:enum(MovieInterruptionDialogRetCode)
Returns:Return one of the enum value defined by MovieInterruptionDialogRetCode.
Abort = 262144
AcceptRole = 0
Accepted = 1
ActionRole = 3
Apply = 33554432
ApplyRole = 8
ButtonMask = -769
class ButtonRole

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x167f7f8>
Cancel = 4194304
Close = 2097152
Critical = 3
Default = 256
DestructiveRole = 2
class DialogCode

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x1656608>
Discard = 8388608
DrawChildren = 2
DrawWindowBackground = 1
Escape = 512
FirstButton = 1024
FlagMask = 768
Help = 16777216
HelpRole = 4
class Icon

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x167fba8>
Ignore = 1048576
IgnoreMask = 4
Information = 1
InvalidRole = -1
LastButton = 134217728
No = 65536
NoAll = 131072
NoButton = 0
NoIcon = 0
NoRole = 6
NoToAll = 131072
Ok = 1024
Open = 8192
class PaintDeviceMetric

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x160eed8>
PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
Question = 4
RejectRole = 1
Rejected = 0
class RenderFlag

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x1cbae98>
class RenderFlags

Bases: sip.simplewrapper

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

__init__

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

Reset = 67108864
ResetRole = 7
RestoreDefaults = 134217728
Retry = 524288
STRINGED_RESPONSES = {True: 'TRUE_RESPONSE', False: 'FALSE_RESPONSE', None: 'NONE_RESPONSE'}
Save = 2048
SaveAll = 4096
class StandardButton

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x167ff58>
class StandardButtons

Bases: sip.simplewrapper

QMessageBox.StandardButtons(Union[QMessageBox.StandardButtons, QMessageBox.StandardButton]) QMessageBox.StandardButtons(QMessageBox.StandardButtons)

__init__

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

TYPED_RESPONSES = {'FALSE_RESPONSE': False, 'NONE_RESPONSE': None, 'TRUE_RESPONSE': True}
Warning = 2
Yes = 16384
YesAll = 32768
YesRole = 5
YesToAll = 32768
about(QWidget, str, str)
aboutQt(QWidget, title: str = '')
accept(self)
acceptDrops(self) → bool
accepted

accepted(self) [signal]

accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
addButton(self, QAbstractButton, QMessageBox.ButtonRole)

addButton(self, str, QMessageBox.ButtonRole) -> QPushButton addButton(self, QMessageBox.StandardButton) -> QPushButton

adjustSize(self)
autoFillBackground(self) → bool
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
button(self, QMessageBox.StandardButton) → QAbstractButton
buttonClicked

buttonClicked(self, QAbstractButton) [signal]

buttonRole(self, QAbstractButton) → QMessageBox.ButtonRole
buttons(self) → List[QAbstractButton]
changeEvent(self, QEvent)
checkBox(self) → QCheckBox
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)
clickedButton(self) → QAbstractButton
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
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
critical(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) → QMessageBox.StandardButton
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)
defaultButton(self) → QPushButton
deleteLater(self)
depth(self) → int
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
destroyed

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

detailedText(self) → str
devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
disconnect(self)
disconnectNotify(self, QMetaMethod)
done(self, int)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
escapeButton(self) → QAbstractButton
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
exec(self) → int
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]

finished

finished(self, int) [signal]

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
forgetResponse()
frameGeometry(self) → QRect
frameSize(self) → QSize
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
getResponse()

Override this method to specify the nature of the “response” to save. Here it is simply True, to indicate that the “Do not show this again” checkbox has been checked.

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
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
icon(self) → QMessageBox.Icon
iconPixmap(self) → QPixmap
information(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) → QMessageBox.StandardButton
informativeText(self) → str
inherits(self, str) → bool
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isSizeGripEnabled(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
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
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

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]

open(self)

open(self, PYQT_SLOT)

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
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.

question(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.StandardButtons(QMessageBox.Yes|QMessageBox.No), defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) → QMessageBox.StandardButton
raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
reject(self)
rejected

rejected(self) [signal]

releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeButton(self, QAbstractButton)
removeEventFilter(self, QObject)
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)

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
result(self) → int
saveGeometry(self) → QByteArray
scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
setBaseSize(self, int, int)

setBaseSize(self, QSize)

setCheckBox(self, QCheckBox)
setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDefaultButton(self, QPushButton)

setDefaultButton(self, QMessageBox.StandardButton)

setDetailedText(self, str)
setDisabled(self, bool)
setEnabled(self, bool)
setEscapeButton(self, QAbstractButton)

setEscapeButton(self, QMessageBox.StandardButton)

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)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setIcon(self, QMessageBox.Icon)
setIconPixmap(self, QPixmap)
setInformativeText(self, str)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

setMaximumHeight(self, int)
setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMinimumHeight(self, int)
setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setModal(self, bool)
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
setResult(self, int)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeGripEnabled(self, bool)
setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStandardButtons(self, Union[QMessageBox.StandardButtons, QMessageBox.StandardButton])
setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setText(self, str)
setTextFormat(self, Qt.TextFormat)
setTextInteractionFlags(self, Union[Qt.TextInteractionFlags, Qt.TextInteractionFlag])
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
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)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
standardButton(self, QAbstractButton) → QMessageBox.StandardButton
standardButtons(self) → QMessageBox.StandardButtons
standardIcon(QMessageBox.Icon) → QPixmap
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
text(self) → str
textFormat(self) → Qt.TextFormat
textInteractionFlags(self) → Qt.TextInteractionFlags
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, QRect) update(self, QRegion) update(self, int, int, int, int)

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → QRegion
warning(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) → QMessageBox.StandardButton
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
x(self) → int
y(self) → int
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.QWidgetStyled

Bases: PyQt5.QtWidgets.QWidget

In order to style QWidgets using stylesheet, this custom paintEvent method must be implemented.

paintEvent(e)

See QtWidgets.QWidget documentation for more information.

DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
class PaintDeviceMetric

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x160eed8>
PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
class RenderFlag

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x1cbae98>
class RenderFlags

Bases: sip.simplewrapper

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

__init__

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

__init__

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

acceptDrops(self) → bool
accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
adjustSize(self)
autoFillBackground(self) → bool
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)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
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
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)
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
disconnect(self)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
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
frameSize(self) → QSize
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
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
inherits(self, str) → bool
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
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
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

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]

overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
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)
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)

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
saveGeometry(self) → QByteArray
scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
setBaseSize(self, int, int)

setBaseSize(self, QSize)

setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDisabled(self, bool)
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)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

setMaximumHeight(self, int)
setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMinimumHeight(self, int)
setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
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
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
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)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
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, QRect) update(self, QRegion) update(self, int, int, int, int)

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → 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
x(self) → int
y(self) → int
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.TrajectoryQMenu

Bases: PyQt5.QtWidgets.QMenu

In order to show the QMenu at location above parent tool button, it traps a showEvent() and move menu at desired position.

showEvent(event)

See QtWidgets.QMenu documentation for more information. Moves menu position slightly above parent tool button.

DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
class PaintDeviceMetric

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x160eed8>
PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
class RenderFlag

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x1cbae98>
class RenderFlags

Bases: sip.simplewrapper

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

__init__

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

__init__

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

aboutToHide

aboutToHide(self) [signal]

aboutToShow

aboutToShow(self) [signal]

acceptDrops(self) → bool
accessibleDescription(self) → str
accessibleName(self) → str
actionAt(self, QPoint) → QAction
actionEvent(self, QActionEvent)
actionGeometry(self, QAction) → QRect
actions(self) → List[QAction]
activateWindow(self)
activeAction(self) → QAction
addAction(self, QAction)

addAction(self, str) -> QAction addAction(self, QIcon, str) -> QAction addAction(self, str, PYQT_SLOT, shortcut: Union[QKeySequence, QKeySequence.StandardKey, str, int] = 0) -> QAction addAction(self, QIcon, str, PYQT_SLOT, shortcut: Union[QKeySequence, QKeySequence.StandardKey, str, int] = 0) -> QAction

addActions(self, Iterable[QAction])
addMenu(self, QMenu) → QAction

addMenu(self, str) -> QMenu addMenu(self, QIcon, str) -> QMenu

addSection(self, str) → QAction

addSection(self, QIcon, str) -> QAction

addSeparator(self) → QAction
adjustSize(self)
autoFillBackground(self) → bool
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
clear(self)
clearFocus(self)
clearMask(self)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
columnCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
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
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)
defaultAction(self) → QAction
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
disconnect(self)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
exec(self) → QAction

exec(self, QPoint, action: QAction = None) -> QAction exec(Iterable[QAction], QPoint, at: QAction = None, parent: QWidget = None) -> QAction

exec_(self) → QAction

exec_(self, QPoint, action: QAction = None) -> QAction exec_(Iterable[QAction], QPoint, at: QAction = None, parent: QWidget = None) -> QAction

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
frameSize(self) → QSize
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
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
hideTearOffMenu(self)
hovered

hovered(self, QAction) [signal]

icon(self) → QIcon
inherits(self, str) → bool
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionMenuItem, QAction)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
insertMenu(self, QAction, QMenu) → QAction
insertSection(self, QAction, str) → QAction

insertSection(self, QAction, QIcon, str) -> QAction

insertSeparator(self, QAction) → QAction
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEmpty(self) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isTearOffEnabled(self) → bool
isTearOffMenuVisible(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
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
maximumWidth(self) → int
menuAction(self) → QAction
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

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]

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
popup(self, QPoint, action: QAction = None)
pos(self) → QPoint
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)
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)

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
saveGeometry(self) → QByteArray
scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
separatorsCollapsible(self) → bool
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setActiveAction(self, QAction)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
setBaseSize(self, int, int)

setBaseSize(self, QSize)

setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDefaultAction(self, QAction)
setDisabled(self, bool)
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)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setIcon(self, QIcon)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

setMaximumHeight(self, int)
setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMinimumHeight(self, int)
setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

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

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

setProperty(self, str, Any) → bool
setSeparatorsCollapsible(self, bool)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setTearOffEnabled(self, bool)
setTitle(self, str)
setToolTip(self, str)
setToolTipDuration(self, int)
setToolTipsVisible(self, bool)
setUpdatesEnabled(self, bool)
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)
sharedPainter(self) → QPainter
show(self)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
showTearOffMenu(self)

showTearOffMenu(self, QPoint)

signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
thread(self) → QThread
timerEvent(self, QTimerEvent)
title(self) → str
toolTip(self) → str
toolTipDuration(self) → int
toolTipsVisible(self) → bool
tr(self, str, disambiguation: str = None, n: int = -1) → str
triggered

triggered(self, QAction) [signal]

underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

update(self, QRect) update(self, QRegion) update(self, int, int, int, int)

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → 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
x(self) → int
y(self) → int
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.TrajectoryMaestroSettings(proj, eid, adjust_pos_func, translate_to_first_unit_cell)

Bases: object

Whenever player is setup for a trajectory entry, it saves current settings and apply specific settings. Whenever player state is cleared, it restores original settings.

__init__(proj, eid, adjust_pos_func, translate_to_first_unit_cell)

Save original values of maestro settings and apply new settings according to trajectory mode.

Parameters:
  • proj (project.Project handle.) – Project handle
  • eid (int) – Entry id
  • adjust_pos_func (method(bool)) – Function callback to be called to update

the adjust position.

Parameters:translate_to_first_unit_cell (bool) – Indicates whther ‘Translate to

first unit cell’ is toggled on or off.

setMaxPBCAtomsForUnitCell(translate_to_first_unit_cell)

Set maxpbcatoms based on translate_to_first_unit_cell. maxpbcatoms will be set to 0, if True, otherwise to the original maxpbcatoms.

Parameters:translate_to_first_unit_cell – Indicates whther ‘Translate to

first unit cell’ is toggled on or off. :type translate_to_first_unit_cell: bool

restore()

” Restore maestro settings using original values which were initially changed.

class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory(proj: schrodinger.project.project.Project, eid: int)

Bases: object

It encapsulates all the data related to trajectory inside this object. Primary information stored are trajectory entry settings, cms model, msys model, and list of trajectory frames.

  • Supports both fixed and varying atoms frame trajectory. - When every frame has the same number of atoms, it is called fixed atoms

    trajectory.

    • When all frames do not have same number of atoms, it is called varying atoms trajectory.
  • Supports full system ct validation against entry ct.

  • Atoms visibility handling.

  • Trajectory frame positioning (center or superimpose, no-position)

  • Secondary structure update

  • Restoriation of original entry ct.

__init__(proj: schrodinger.project.project.Project, eid: int)
Parameters:
  • proj – The project containing this trajectory.
  • eid – The entry id attached to this trajectory.
reference_entry_statistics
Returns:Return reference entry statistics object if available.
Return type:ReferenceEntryStatistics
reference_entry_included_first
Returns:True if reference entry is included first in the workspace.
Return type:bool
has_secondary_structure
@return bool indicating if structure has secondary structure properties
or not.
updateSavedFrameStructureForExport(st: schrodinger.structure.structure.Structure)

Update active frame structure for export operation.

readTrajectory()

Read trajectory using desmond APIs and initialize trajectory entry information.

isSameTrajectory(eid: int)

Find out if trajectory associated with given entry id is same as this object.

Parameters:eid – The entry id attached to this trajectory.
Return type:bool
Returns:Whether the trajectory of same entry id is already loaded.
isValid()

Check if trajetory is initialized properly or not.

Return type:bool
Returns:Whether the trajectory object is property constructed.
isSingleFrameTrajectory()

Check if trajetory has a single frame or more than one frame.

Return type:bool
Returns:Whether the trajectory object has more than one frame.
reload()

Reload trajectory. When user switches between No Position, Align reference frame, or Center view positions, we need to pull original trajectory, so that we can get original trajectory because Align reference frame and Center view position modify trajectory data.

This function is expected to be called only if desmond system has already been loaded once.

getFrame(frame_number: int)

Returns a frame object corresponding to frame number.

getFrameTime(frame_number: int)

Return frame chemical time in nano seconds.

getSmoothingFrames(frame_number: int)

Return smoothing frames based on given frame_number and smoothing setting value, or None if smoothing is not greater than 1

Param:frame_number: Frame number for which smoothing frames are

required.

Return type:list(schrodinger.application.desmond.packages.traj.Frame) or None
Returns:List of frames to be used for smoothing.
updateViewPosition(forced_update: bool, asl: str)

Update trajectory based on view position tab settings and adjust frame. To center molecule, ASL must be valid and matched atoms must be at least 1.

To align molecules, ASL must be valid and matched atoms must be at least 3.

Parameters:
  • forced_update – Reload frames from default.
  • asl – ASL to be used.
Return type:

bool

Returns:

Whether the trajectory view positions are updated successfully.

getAtomTotal(frame_ct: schrodinger.structure.structure.Structure)
Param:Frame ct
Return type:int
Returns:Given frame ct atom total.
getFrameAtomTotal(frame_number: int)

return: Return total atom count in the given frame.

getFrameToAtomTotalMap()
Returns:A list of active atom total of all frames.
Return type:list(int)
isFrameStructureChanged(main_ct: schrodinger.structure.structure.Structure)

Whether the given structure changed with respect to the frame structure. Only atom count is taken into consideration when comparision structures for changes.

Parameters:main_ct – Main ct.
Return type:bool
Returns:Whether the given structure changed with respect to frame ct.
restoreEntryCT(eid: int, sync_workspace: bool, is_snapshot_mode_active: bool)

Save original trajectory ct in the project entry because atoms position or visibility might have changed during play. CT will not be restored in case of any modification.

Parameters:
  • eid – Entry id associated with current project.
  • sync_workspace – Whether or not synchronize changes in the

workspace.

Parameters:is_snapshot_mode_active – True if player was showing frame in the

snapshot viewing mode.

isUserEditedEntryCt(entry_ct: schrodinger.structure.structure.Structure, is_snapshot_mode_active: bool)

Structure can be modified by automatic mechanism like replication, frame snapshot viewing, these situations should not modify real structure.

Parameters:entry_ct – Current entry ct stored in the project.
Return type:bool
Returns:True if structure is edited by the user.
getNumberOfReplica()

Returns number of replica including all dimensions.

Return type:int
Returns:Number of replica
getReplicateVector()

Returns replicate vector i.e tuple of x, y, z

Return type:tuple(int, int, int)
Returns:Return tuple of replication vector
visibilityChanged(displayed: list, undisplayed: list, entry_start_atom: int)

Update saved atoms visibility according to new state. The list of atoms represent workspace atoms, so we need to make sure that atoms belonging from this entry are updated.

Parameters:
  • displayed – List of atoms which are displayed.
  • undisplayed – List of atoms which are undisplayed.
  • entry_start_atom – First entry atom number in the workspace ct.
getEntryAtomTotal()

Return trajectory entry atom count.

Return type:int
Returns:Trajectory entry atom total
usingTemporaryFrameStructure()

If trajectory contains fixed atoms frame and there is no replica, we operate directly on workspace structure (i.e. main ct). Otherwise, operate on temporary frame ct. :return: True if frame structure is not intended to be used same as workspace structure.

allow_reference_entry

If trajectory is superimposed on external structure, we allow one more entry in the workspace, so that total entries in the workspace are 2.

reference_entry_id
Returns:Return reference entry id if there is any.
trajectory_start_atom_in_workspace_structure
Returns:Return frame structure starting atom position in the workspace structure.
Return type:int
getTrajectoryAtomTotalInWorkspaceStructure(main_ct: schrodinger.structure.structure.Structure)

If external structure is allowed to superimpose on frame structure, then main_ct atom total does not reflect trajectory atom total in the workspace structure, so we compute trajectory atom total here.

Parameters:main_ct – Workspace structure
Returns:Return trajectory atoms total in the workspace structure including replica or varying atoms.
Return type:int
isVaryingAtomsFrame()

If trajectory contains inactive atoms (i.e. varying atoms frame) or not.

Type:bool
Returns:
  • For fixed atoms trajectory, it returns False.
  • For varying atoms trajectory, it returns True.
restoreDefaultVisibility(frame_ct: schrodinger.structure.structure.Structure)

Set default trajectory entry atoms visibility in the frame ct.

Parameters:frame_ct – Frame structure.
applyVisibilityAsl(frame_ct: schrodinger.structure.structure.Structure, asl: str, display_only: bool, visible: bool)

Apply visibility asl according to evaluated asl on frame ct associated with this trajectory entry.

Parameters:
  • frame_ct – Frame structure.
  • asl – ASL to be evaluated for this entry.
  • visible – Visibility value of atoms matching the asl.
updateFrameStructure(frame_number: int)

Update frame structure ct corresponding to given frame. Also return frame structure corresponding to given frame number.

Parameters:frame_number – Frame number of the requested frame.
Return type:structure.Structure
Returns:Return an updated frame ct.

Note function assumes frame_number is a valid frame in the trajectory and caller should always use returned ct for updating its own data, but should not modify returned ct.

getUpdatedFrameStructure(frame_number: int, frame_ct: schrodinger.structure.structure.Structure, frames_to_smooth: list)

Update given frame structure ct corresponding to given frame. and return updated frame structure.

Parameters:
  • frame_number – Frame number of the requested frame.
  • frame_ct – Frame structure to be updated.
Param:

frames_to_smooth: Frames whose atom coordinates are to be

smoothed to update the atom coordinates in frame_ct.

Return type:structure.Structure
Returns:Return an updated frame ct.
resetStructure(sync_workspace: bool)

Reset entry’s structure with trajectory structure

Parameters:sync_workspace – Synchronize workspace after resetting a

structure in the project.

Return type:bool
Returns:Whether the entry structure is reset succesfully.
entryStructureIsValid()

Validates entry structure with trajectory structure.

Return type:bool
Returns:Whether the structure is valid.
assignSecondaryStructure()

Quick assign secondary structure properties.

getBoxProperties(frame_number: int)

Return box properties for the given frame number. If there is no frame corresponding to frame number, it uses cms_model box properties.

Parameters:frame_number – The frame number of the box for which points will

be computed.

Return type:list
Returns:List of 9 properties (ax, ay, az, bx, by, bz, cx, cy, cz)
getCrystalUnitCellBoxPoints(frame_number: int, pbc_position: str)

Compute crystal unit cell points.

Parameters:frame_number – The frame number of the box for which points will

be computed.

Parameters:pbc_position – PBC position anchored at some origin defined by

its value.

Return type:list(list)
Returns:List of 4 box points
getDesmondBoxPoints(frame_number: int)

Compute desmond box points for the given frame number.

Parameters:frame_number – The frame number of the box for which points will

be computed.

Return type:list(list)
Returns:List of 4 box points
getBoxPoints(frame_number: int)

Compute simulation box points. If trajectory is coming from Desmond, it uses frame box properties. If trajectory is coming from materials science, it uses crystal unit cell properties.

Parameters:frame_number – The frame number of the box for which points will

be computed.

Return type:list(maestro_ui.MM_GraphicsVec3d) or None
Returns:List of 4 box points or None
getWaterMapBoxTranslationVector()

If trajectory is generated from WaterMap, then trajectory cms file also contains 3 watermap specific properties which define translation values. r_watermap_trans1 -> x direction r_watermap_trans2 -> y direction r_watermap_trans3 -> z direction

This setting is applicable only if player view position setting is not center molecule in workspace.

updateBoxPropertiesInProject(frame_number: int)

Update box property’s value in the project.

class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.TrajectoryPlayer(trj_hub=None, hide_hideatoms_settings=False, parent=None)

Bases: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.QWidgetStyled

This is a toolbar for the Trajectory player

Variables:currentFrameChanged – A signal emitted when the current frame changes

in the player. :vartype currentFrameChanged: QtCore.pyqtSignal

Variables:showTrajectorySnapshotPanel – A signal emitted when user clicks on View

Snapshot menu from EXPORT button. :vartype showTrajectorySnapshotPanel: QtCore.pyqtSignal

Variables:trajectoryLoaded – A signal emitted when a new trajectory is loaded in

the player. Emits the total number of frames in the new trajectory :vartype trajectoryLoaded: QtCore.pyqtSignal

Variables:trajectoryUnloaded – A signal emitted when a trajectory is unloaded from

the player. :vartype trajectoryUnloaded: QtCore.pyqtSignal

Variables:
  • closed – A signal emitted when player toolbar is closed.
  • atomsSelectedToggled – A signal emitted when atom selection changes. Emits

a bool indicating if there are any atoms selected in the workspace :vartype atomsSelectedToggled: QtCore.pyqtSignal

currentFrameChanged
showTrajectorySnapshotPanel
trajectoryLoaded
trajectoryUnloaded
closed
createPlot
atomsSelectedToggled
multiAtomsSelectedToggled
MAX_ALLOWED_ENTRIES_IN_WORKSPACE = 2
__init__(trj_hub=None, hide_hideatoms_settings=False, parent=None)

Sets up all the tool buttons in the toolbar.

See parent QtWidgets.QWidget for documentation.

Parameters:hide_hideatoms_settings (bool) – A flag indicating whether to hide/show hide atoms settings.
Param:trj_hub : The TrajectoryViewerHub which provides interaction with maestro.
projectAboutToClose()

Handle trajectory entry when project is about to be closed.

closePlayerIfAllowed()

Called when user clicks on X button.

If player is saving a movie, warn user before closing a player, otherwise hide player, notify clients and restore default entry ct.

setEntryTraj(entry_traj=None)

Set the EntryTrajectory for this panel.

Parameters:entry_traj (EntryTrajectory or None) – EntryTrajectory to be set.
showMovieInterruptionDialog(interruption_type)

Show movie interruption warning dialog. If user pressed Save, save only currently saved frames. If user pressed Resume, continue saving all frames. If user pressed Cancel, discard all saved frames.

Parameters:interruption_type (enum(MovieInterruptionType)) – Interruption source button.
Return type:enum(MovieInterruptionDialogRetCode)
Returns:Button pressed by user.
restoreEntryCT(eid: int, sync_workspace: bool)

Save original trajectory ct in the project entry because atoms position or visibility might have changed during play. CT will not be restored in case of any modification.

Parameters:
  • eid – Entry id associated with current project.
  • sync_workspace – Whether or not synchronize changes in the

workspace.

pausePlayer()

Slot of maestro_ui.MM_QLineEdit.clicked() signal caused by current frame text edit box. Slot of maestro_ui.TripleMarkerSlider.mouseDragged() signal caused by slider drag. Pause a player and remember its current state.

resumePlayer()
  1. Resume playing if player was paused due to current frame text edit box.

2. Slot of maestro_ui.TripleMarkerSlider.mouseReleased() signal caused by stopping slider drag. 3. Advance Setting dialog is displayed.

playOrPauseButtonClicked(checked)

Rewind player when user clicks on play button and next frame is not a valid frame and loop option is NONE.

updatePlayerTooltip()

Player button tooltip depends on player state, so appropriately update tooltip.

playOrPauseButtonToggled()

Update icons and start player if player button is checked.

startOrStepBackButtonClicked()

Step back by step size or jump to start based on player state.

updateCurrentFrame()
  1. Show current frame in the workspace.
  2. Update player gui.
Return type:bool
Returns:Whether the current frame is updated.
loadFrameFromPlot(frame_idx, fit_asl, eid)

Load the specified frame from an analysis plot event.

Parameters:
  • frame_idx (int) – Frame to be loaded with 1-based indexing.
  • fit_asl (str) – ASL to fit Workspace to after loading frame
  • eid (int) – Entry ID of the requested trajectory
endOrStepForwardButtonClicked()

Jump to end or forward by step size based on player state.

updatePlayerBackAndForwardButtons(player_active, current_value)

Update back and forward buttons enable state depending on current value.

If saving movie, then we should never enable back and forward buttons.

savingMovie()
Return type:bool
Returns:True if saving a movie.
ensureValidCurrentFrame()

Make sure that valid value is set in the current frame text edit box.

sliderValuesChanged()

Slot which gets called whenenver any slider point value changes. Updates current frame text box, elapsed time, and total time to view entire trajectory, current frame text box valid range.

updatePlayer()

Update all components of player toolbar.

getTimeValueInRange(start_frame: int, end_frame: int)

Compute total time for a given range. Function returns valid value only if there is a valid trajectory and start and end frame numbers are valid.

Parameters:
  • start_frame – Starting frame number.
  • end_frame – Ending frame number.
Returns:

Total time in the given range.

Return type:

float

updateTotalTime()

Update total time label keeping slider min and max in the consideration.

updateElapsedTime()

Update elapsed time label keeping slider current and min size in the consideration.

currentFrameValueChanged()

Slot which gets called whenenver current frame value text changes.

Updates middle slider point and elapsed time.

current_min_value

Return slider’s left point value.

current_max_value

Return slider’s right point value.

current_value

Return slider’s middle point value. 0-indexed value.

current_frame_number

Return current frame number.

total_frame

Return total frame in the trajectory.

formattedValue(value)

Return formatted value of 2 precision in string format.

total_time

Return total time to view trajectory.

elapsed_time

Return elapsed time of trajectory view.

player_active

Return true if player is running.

updateSimulationBox()

Compute simulation box points and notify maestro to show/hide simulation box. Notify maestro to draw simulation box based on current frame box position. TODO: MultipleTrajectory - We need to update all trajectories simulation box.

getStartAtom(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory)

Get starting atom of this trajectory entry in the workspace ct.

Parameters:entry_traj – Trajecotry object of which first atom we need to find

in the workspace structure.

Return type:int
Returns:First atom in the workspace structure associated with this

trajectory entry.

Note: This will change for multiple trajectories.

simbox_visible

Return true if simulation box is visible.

setDisplayAtomsASL(unused, forced_update=True)

Set matching atoms asl. This ASL acts as display only asl if Playback Settings -> Advanced tab -> Display Only checked, otherwise acts as hide specified atoms.

Param:unused: It is not used.
Type:unused: bool
Type:forced_update: bool
Param:forced_update: Update current frame in workspace if player is not

active.

updateTrajectoryEntry()

Update local copy of entry structure if there is any.

visibilityChanged(displayed, undisplayed)

Update saved atoms visibility according to new state. It honors visibility changes only if visibility is updated by any component which is not a part of player toolbar.

Parameters:
  • displayed (list(int)) – List of atoms which are displayed.
  • undisplayed (list(int)) – List of atoms which are undisplayed.
applyDisplayAtomsASLOnCT(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory, frame_ct: schrodinger.structure.structure.Structure)

Display or hide atoms in the frame_ct based on stored atoms asl.

ASL acts as display only asl if Playback Settings -> Advanced tab -> Display Only checked, otherwise acts as hide specified atoms.

Parameters:
  • frame_ct – The ct to be updated.
  • entry_traj – Entry trajectory to be used to update visibility.
getOriginalEntryCT(copy: bool)
Parameters:copy – True if caller needs a copy.
Return type:structure.Structure

return: Copy of initial entry ct or reference to it.

isVaryingAtomsFrame()

If trajectory contains inactive atoms (i.e. varying atoms frame) or not.

Type:bool
Returns:
  • For fixed atoms trajectory, it returns False.
  • For varying atoms trajectory, it returns True.
getUpdatedFrameSnapshot(frame_number: int, frame_ct: schrodinger.structure.structure.Structure, forced_update: bool, use_display_asl: bool)

Update frame ct using given frame number’s associated frame. Also update atoms visibility based on player defined visibility asl.

Parameters:
  • frame_number – Frame number of the frame to be used for updation.
  • frame_ct – Frame structure which will be updated.
  • forced_update – Forcefully updated (it is required when first

frame is loaded).

Parameters:use_display_asl – Determine if display asl should also be applied

or not.

Return type:structure.Structure
Returns:Updated frame structure.
shouldUpdateVisibility(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory)

Check if visibility should be updated or not. Applicable in both restoring original visibility and apply asl based visibility.

Parameters:entry_traj – Entry trajectory to be used to know if fixed atoms

frame ct or varying atoms frame ct.

Return type:bool
Returns:True if visibility should be updated.
shouldRestoreVisibility(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory)

Determine if frame ct visibility should be restored or not.

Parameters:entry_traj – Entry trajectory to be used to know if fixed atoms

frame ct or varying atoms frame ct.

Return type:bool
Returns:True if visibility should be restored.
needVisibilityUpdate(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory)

Determine if frame ct visibility should be updated or not.

Parameters:entry_traj – Entry trajectory to be used to know if fixed atoms

frame ct or varying atoms frame ct.

Return type:bool
Returns:True if visibility should be updated.
applyDisplayAtomsASL(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory, changed_structure: bool)

Display or hide atoms based on stored atoms asl in the entry_traj’s frame ct. ASL acts as display only asl if Playback Settings -> Advanced tab -> Display Only checked, otherwise acts as hide specified atoms.

Parameters:
  • entry_traj – Entry trajectory to be used to update visibility.
  • changed_structure – Indicates if structure itself is changed or

not.

Return type:bool
Returns:Whether the asl is applied.

TODO: MultipleTrajectory - We need to iterate over all trajectories and update visiblity.

updatePBCMeasurement(entry_traj, frame_number)

Update data in maestro_ui.TrajectoryViewerHub, so that maestro calculate measurements keeping PBC in consideration.

Parameters:frame_number – Frame number to be displayed in workspace.

Possible values are 1 to self.total_frame :type frame_number: int #TODO MultipleTrajectory - We need to update PBC measurement box for all trajectories.

getUpdatedCT(entry_traj: schrodinger.trajectory.trajectory_gui_dir.playertoolbar.EntryTrajectory, frame_number: int, main_ct: schrodinger.structure.structure.Structure, honor_replica: bool)

Update entry_traj frame ct using given frame number and apply changes in the main_ct either by transferring delta change or by copying frame ct from scratch.

Parameters:
  • entry_traj – Entry trajectory object.
  • frame_number – Frame to be used to update main ct.
  • main_ct – The main ct which will be updated using entry traj’s

frame.

Parameters:honor_replica – Whether to honor replica. Export structure does

not support replica.

Return type:tuple(structure.Structure, bool, bool, maestro_ui.MMENUM_DGO_CHANGED_TYPE)
Returns:(Modified main_ct or a copy of frame_ct, True if original structure is modified, True if visibility changed, DGO change type if secondary structure assignment was performed).
syncCTAtomsFromFrameAtoms(frame_ct: schrodinger.structure.structure.Structure, main_ct: schrodinger.structure.structure.Structure, old_frame_atom_total: int, eid: int, trajectory_atom_total_in_main_ct: int, trajectory_start_atom: int)

Varying atoms frame does not always contain same number of atoms as in the previous frame. main_ct represents a previously displayed frame atoms. So we need to adjust main_ct atoms according to new frame ct.

If main_ct contains replica atoms, then we don’t do anything because it is simpler to clone frame_ct and extend in the main_ct instead of selectively deleting/adding atoms in the middle of main_ct.

Parameters:
  • frame_ct – New frame ct to be used for synching atom.
  • main_ct – Main ct to be updated.
  • old_frame_atom_total – Previously displayed frame atom total.
  • eid – Entry id to be set when new atoms are added in the main_ct.
  • trajectory_atom_total_in_main_ct – Total trajectory atoms in the workspace

structure (including replica and varying atoms).

Parameters:trajectory_start_atom – Starting position of trajectory atom in the workspace

structure.

Return type:structure.Structure
Returns:Modified main ct or unchanged main ct.
updateStructureFromFrame(frame_number: int, main_ct: schrodinger.structure.structure.Structure, notify_maestro: bool)

Validate main ct and update main_ct using given trajectory frame. If notify_maestro is True, notify maestro to display updated main ct in the workspace as well.

Parameters:frame_number – Frame number to be displayed in workspace.

Possible values are 1 to self.total_frame

Parameters:
  • main_ct – Workspace ct to be updated using given frame.
  • notify_maestro – Whether to notify maestro about workspace changes.

TODO: MultipleTrajectory

transferFrameChangeToCT(frame_ct: schrodinger.structure.structure.Structure, main_ct: schrodinger.structure.structure.Structure, replica_vector: tuple, update_ss: bool, trajectory_start_atom: int)

Copy frame ct changes - position, secondary structure, and visibility in the main ct. The main ct may not exactly have same number of atoms as in the frame ct if replica_vector != (1,1,1)

Parameters:
  • frame_ct – Frame ct to be used as reference.
  • main_ct – Workspace ct to be updated using frame_ct.
  • replica_vector – Replication vector in a,b,c direction.
  • update_ss – Whether secondary structure properties needs to be

updated.

Parameters:trajectory_start_atom – Starting position of trajectory atom in

the workspace structure.

@side_effect: It modifies main_ct. TODO: MultipleTrajectory

notifyMaestro(main_ct: schrodinger.structure.structure.Structure, changed_structure: bool, visibility_changed: bool, dgo_change: schrodinger.ui.maestro_ui.MMENUM_DGO_CHANGED_TYPE)

Notify maestro about workspace ct changes and update simulation box.

Parameters:
  • main_ct – Structure to be set as workspace ct if structure was changed.
  • changed_structure – True if st is different than workspace ct.
  • visibility_changed – True if atoms visibility changed in the st.
  • dgo_change (maestro.MMENUM_DGO_CHANGED_TYPE) – Type of dgo change.
updateFrameCTTitle(st, frame_number)

Update given frame ct title based on frame number.

Parameters:
  • st (structure.Structure) – Frame structure
  • frame_number (int) – Frame number to be displayed in workspace.
getStartFrame()

Return start frame number. Internally frame numbering uses 0-based index, but user interface uses 1-based index.

getEndFrame()

Return end frame number.

getNextFrameNumber(play_direction, curr_frame)

Return next frame number based on player direction and step size. Returns None if it is not possible to get next frame number.

takeTrajectoryStep(curr_frame)

Return next frame number based on player direction, step size, and loop option.

isValidFrame(curr_frame)

Return true if given frame number is valid.

setSnapshotPanelVisibility(visible: bool)

Set snapshot visiblity state.

Parameters:visible – True if visible.
is_snapshot_panel_visible
Returns:True if snapshot panel is visible.
Return type:bool
setReferenceEntryStatistics(use_full_system_ct: bool)

Set reference entry statistics for the current trajectory if allowed. :param use_full_system_ct: When trajectory is initially loaded, this flag is True indicating that full system ct should be used as reference because for varying atoms, frame ct may not be in sync with full system ct.

inclusionUpdated(all_included, previous_included)

Slot associated with WorkspaceHub.inclusionUpdated() signal.

Param:all_included: List of currently included entry ids in the workspace ct, it does not guarantee that project also has same included entries at the moment because this slot may be triggered before updating the entry workspace state in the project.
Param:previous_included: List of previously included entry ids in the workspace ct.
is_snapshot_mode_active
Return type:bool
Returns:True if display frames from snapshot panel is activated.
clearTrajectory()

Stop current trajectory play if player is active. Delete trajectory object. Disable player controls. Clear all trajectory related gui control values.

setToolbarEnabled(enable)

Enable or disable all toolbar controls except X button.

If player is in saving movie mode, then we don’t disable play/pause button also.

proj

Return current maestro project object.

getEid()

Return current trajectory entry id.

reference_entry_id
Returns:Return reference entry id is there is any.
setupTrajectory(eids, show_player)

Setup trajectory settings in the player for a given list of entry ids.

Param:eids : The list of entry ids to be used for trajectory playing.
Parameters:show_player – Determine if player should also be shown.

@param multiple_included: True if more than one entries are included in the workspace at the time of setting up trajectory. @type multiple_included: bool

@Note: current only single trajectory is supported, so eids is a list of single entry.

updateSliderValues(start_frame, end_frame, current_frame)

Update slider values based on start, end, and current frame.

updateFrameTimerInterval(frame_duration)

Updates frame_timer interval using the frame_duration

updateStepSize(step_size, update_player=True)

Updates step size.

Param:step_size: Step size to be used while stepping in the

trajectory. Possible values are 1-99 or self.endFrame() - self.startFrame(). :type: step_size: int

Param:update_player: Indicates whether or not update player toolbar

gui. :type: update_player: bool

setupContextMenu()

Setup player toolbar context menu.

contextMenuEvent(event)

This function redefines context menu event for the player toolbar. Context menu is displayed only if there is no child widget at right clicked position.

Parameters:event (QtGui.QContextMenuEvent) – Qt context menu event
setupPlotMenu(plot_button)

Sets up the plot menu

Parameters:plot_button (QToolButton) – Plot button to hook up menu to
setupExportMenu(export_button)

Sets up Export button menu.

connectToPlaybackSettingsPopup()

Connect to PlaybackSettings popup (self.playback_settings_popup) for change in playback settings.

updateViewPosition(forced_update=True)

Update trajectory based on view position tab settings and adjust frame. To center molecule, ASL must be valid and matched atoms must be at least 1.

To align molecules, ASL must be valid and matched atoms must be at least 3.

Param:forced_update: Copy all frame’s position array and adjust frame

in the workspace using new view position setting. :type: forced_update: bool

translateToFirstUnitCellChanged()

Update player according to ‘Translate to first unit cell’ and simulation box settings

settingsChanged(forced_update=True)

Update player according to current PlaybackSettings

Parameters:forced_update (bool) – Whether to update current frame
handleAdvancedSettings(forced_update=True)

Update player according to the advanced settings data

updateLoopOption(loop_option)

Update loop option (NONE, SINGLE, OSCILLATE)

updatePlayDirection(play_direction, update_player=True)

Update play direction icon and direction member (FORWARD, BACKWARD)

Param:play_direction: Direction of play as specified by

trajectory_gui_dir.playback_settings_popup.data.Direction. :type: play_direction: enum(Direction)

Param:update_player: Indicates whether or not update player toolbar

gui. :type: update_player: bool

showAdvancedSettings()

Shows ‘Advanced Playback Settings’ dialog

uncheckPlaybackSettingsButton()

Unchecks ‘Playback Settings’ button when ‘Playback Settings’ popup is hidden/closed.

DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
class PaintDeviceMetric

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x160eed8>
PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
class RenderFlag

Bases: int

__init__ = <method-wrapper '__init__' of sip.enumtype object at 0x1cbae98>
class RenderFlags

Bases: sip.simplewrapper

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

__init__

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

acceptDrops(self) → bool
accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
adjustSize(self)
autoFillBackground(self) → bool
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)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuPolicy(self) → Qt.ContextMenuPolicy
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
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)
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
disconnect(self)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
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
frameSize(self) → QSize
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
getTimeTooltip(slider_index, frame_number)

Return tooltip text for time.

Param:slider_index: The frame slider index (left, middle, or right)
Param:frame_number: The current valid frame number represented by

slider point. :type frame_number: int

Returns:Time tooltip text.
Return type:str
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
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
inherits(self, str) → bool
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
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
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

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]

overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintEvent(e)

See QtWidgets.QWidget documentation for more information.

paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
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)
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)

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
saveGeometry(self) → QByteArray
scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
setBaseSize(self, int, int)

setBaseSize(self, QSize)

setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDisabled(self, bool)
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)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

setMaximumHeight(self, int)
setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMinimumHeight(self, int)
setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
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
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
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)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
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, QRect) update(self, QRegion) update(self, int, int, int, int)

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → 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
x(self) → int
y(self) → int
updateFrameSliderToolTip(slider_index)

Update tooltip text for a frame slider. Tooltip displays both frame number and elapsed time. For middle slider, it also displays total frames and current frame position taking into consideration min, max, and step size.

Param:slider_index: the frame slider index (left, middle, or right)
addVerticalLine(base_layout)

Add a vertical line of fixed width in the given layout

snapshotModeChanged(state: bool)

When snapshot panel mode activates, we should disable player toolbar and hide simulation box.

Parameters:state – Determine if snapshot panel mode activated or deactivated.
snapshotPanelClosed()

Snapshot panel can load trajectory without showing a player toolbar, so make sure that trajectory is unloaded if player is not visible.

getFrameToAtomTotalMap()
Returns:A list of active atom total of all frames.
Return type:list(int)
class schrodinger.trajectory.trajectory_gui_dir.playertoolbar.MovieSaver(player_obj)

Bases: object

This class provides ability to save trajectory movie.

__init__(player_obj)
Parameters:player_obj (TrajectoryPlayer) – Trajectory player toolbar object.
clearData()

Clean all data members.

exportMovie()

Display a export movie dialog and collect all necessary inputs to save a movie.

stopSavingMovie(ok_status=True)

Restore current frame, start, end, direction, and loop options set before saving movie and notify maestro to save in the movie file. Function is a no-op if we were not saving a movie.

Parameters:ok_status (bool) – True if stopping movie gracefully (i.e. all frames are saved successfully)
savingMovie()
Return type:bool
Returns:True if saving movie.
saveFrameForMovie()

Save current trajectory frame for movie.