schrodinger.ui.qt.rama module¶
A Ramachandran Plot widget, along with some tools for manipulating structures/points.
Usage:
Rama(parent)
Schrodinger L.L.C.
- class schrodinger.ui.qt.rama.RamaFigure(width=5, height=4, dpi=100, toolbar=True, layout=None, expanding=True, **kwargs)[source]¶
Bases:
schrodinger.ui.qt.smatplotlib.SmatplotlibCanvas
- DrawChildren = 2¶
- DrawWindowBackground = 1¶
- IgnoreMask = 4¶
- class PaintDeviceMetric¶
Bases:
int
- 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
- class RenderFlags¶
- class RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) None
- class RenderFlags(QWidget.RenderFlags) None
Bases:
sip.simplewrapper
- __init__(*args, **kwargs)¶
- __init__(width=5, height=4, dpi=100, toolbar=True, layout=None, expanding=True, **kwargs)¶
- Parameters
width (number) – width of the plot Figure in inches
height (number) – height of the plot Figure in inches
dpi (int) – resolution of the plot
toolbar (boolean) – True if the toolbar should be created, but the parent parameter must be supplied in this case
layout (QLayout object) – If layout is supplied, the toolbar and canvas will be placed in it.
Extra keyword arguments are passed to the toolbar function
- 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 ¶
- blit(bbox=None)¶
Blit the region in bbox.
- property blitbox¶
Deprecated since version 2.1: The blitbox function was deprecated in version 2.1.
- blockSignals(self, bool) bool ¶
- buffer_rgba()¶
Get the image as an RGBA byte string
draw
must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.bytes
- button_press_event(x, y, button, dblclick=False, guiEvent=None)¶
Backend derived classes should call this function on any mouse button press. x,y are the canvas coords: 0,0 is lower, left. button and key are as defined in
MouseEvent
.This method will be call all functions connected to the ‘button_press_event’ with a
MouseEvent
instance.
- button_release_event(x, y, button, guiEvent=None)¶
Backend derived classes should call this function on any mouse button release.
This method will call all functions connected to the ‘button_release_event’ with a
MouseEvent
instance.- xscalar
the canvas coordinates where 0=left
- yscalar
the canvas coordinates where 0=bottom
- guiEvent
the native UI event that generated the mpl event
- buttond = {1: 1, 2: 3, 4: 2}¶
- changeEvent(self, QEvent)¶
- childAt(self, QPoint) QWidget ¶
- RamaFigure.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)¶
- close_event(guiEvent=None)¶
Pass a
CloseEvent
to all functions connected toclose_event
.
- colorCount(self) int ¶
- connectNotify(self, QMetaMethod)¶
- contentsMargins(self) QMargins ¶
- contentsRect(self) QRect ¶
- contextMenuEvent(self, QContextMenuEvent)¶
- contextMenuPolicy(self) Qt.ContextMenuPolicy ¶
- copy_from_bbox(bbox)¶
- create(self, window: PyQt5.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(QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- draw()¶
Draw the figure using the renderer
- drawRectangle(rect)¶
- draw_cursor(event)¶
Draw a cursor in the event.axes if inaxes is not None. Use native GUI drawing for efficiency if possible
- draw_event(renderer)¶
Pass a
DrawEvent
to all functions connected todraw_event
.
- draw_idle()¶
Queue redraw of the Agg buffer and request Qt paintEvent.
- dropEvent(self, QDropEvent)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- effectiveWinId(self) PyQt5.sip.voidptr ¶
- ensurePolished(self)¶
- enterEvent(self, QEvent)¶
- enter_notify_event(guiEvent=None, xy=None)¶
Backend derived classes should call this function when entering canvas
- guiEvent
the native UI event that generated the mpl event
- xytuple of 2 scalars
the coordinate location of the pointer when the canvas is entered
- event(self, QEvent) bool ¶
- eventFilter(obj, event)¶
The canvas needs to grab keyboard input in order to reliably tell when a modifier key (shift or control) is down when a mouse button is pressed/released.
Some environments have trouble with passing the control key in events - a control-left-click is often mapped to a right-click. Therefore we do our best to capture on our own when the control key is down. Note that even this breaks for multiple control-clicks on Linux running under VMWare Fusion on Macs, because VMWare by default “lifts” the control key after the first click.
- Parameters
obj (not used) – not used
event (QEvent) – the event object
- events = ['resize_event', 'draw_event', 'key_press_event', 'key_release_event', 'button_press_event', 'button_release_event', 'scroll_event', 'motion_notify_event', 'pick_event', 'idle_event', 'figure_enter_event', 'figure_leave_event', 'axes_enter_event', 'axes_leave_event', 'close_event']¶
- filetypes = {'eps': 'Encapsulated Postscript', 'jpeg': 'Joint Photographic Experts Group', 'jpg': 'Joint Photographic Experts Group', 'pdf': 'Portable Document Format', 'png': 'Portable Network Graphics', 'ps': 'Postscript', 'raw': 'Raw RGBA bitmap', 'rgba': 'Raw RGBA bitmap', 'svg': 'Scalable Vector Graphics', 'svgz': 'Scalable Vector Graphics', 'tif': 'Tagged Image File Format', 'tiff': 'Tagged Image File Format'}¶
- find(PyQt5.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]
- fixed_dpi = None¶
- flush_events()¶
Flush the GUI events for the figure.
Interactive backends need to reimplement this method.
- 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] ¶
- get_default_filename()¶
Return a string, which includes extension, suitable for use as a default filename.
- classmethod get_default_filetype()¶
Get the default savefig file format as specified in rcParam
savefig.format
. Returned string excludes period. Overridden in backends that only support a single file type.
- get_renderer(cleared=False)¶
- classmethod get_supported_filetypes()¶
Return dict of savefig file formats supported by this backend
- classmethod get_supported_filetypes_grouped()¶
Return a dict of savefig file formats supported by this backend, where the keys are a file type name, such as ‘Joint Photographic Experts Group’, and the values are a list of filename extensions used for that filetype, such as [‘jpg’, ‘jpeg’].
- get_width_height()¶
Return the figure width and height in points or pixels (depending on the backend), truncated to integers
- get_window_title()¶
Get the title text of the window containing the figure. Return None if there is no window (e.g., a PS backend).
- 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]) None
- grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) int ¶
- grab_mouse(ax)¶
Set the child axes which are currently grabbing the mouse events. Usually called by the widgets themselves. It is an error to call this if the mouse is already grabbed by another axes.
- 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)¶
- idle_event(guiEvent=None)¶
Deprecated since version 2.1: The idle_event function was deprecated in version 2.1.
Called when GUI is idle.
- inherits(self, str) bool ¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- inputMethodHints(self) Qt.InputMethodHints ¶
- inputMethodQuery(self, Qt.InputMethodQuery) Any ¶
- RamaFigure.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 ¶
- is_saving()¶
Returns whether the renderer is in the process of saving to a file, rather than rendering for an on-screen buffer.
- property keyAutoRepeat¶
If True, enable auto-repeat for key events.
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- key_press_event(key, guiEvent=None)¶
Pass a
KeyEvent
to all functions connected tokey_press_event
.
- key_release_event(key, guiEvent=None)¶
Pass a
KeyEvent
to all functions connected tokey_release_event
.
- keyboardGrabber() QWidget ¶
- killTimer(self, int)¶
- layout(self) QLayout ¶
- layoutDirection(self) Qt.LayoutDirection ¶
- leaveEvent(self, QEvent)¶
- leave_notify_event(guiEvent=None)¶
Backend derived classes should call this function when leaving canvas
- guiEvent
the native UI event that generated the mpl event
- 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 ¶
- minumumSizeHint()¶
- motion_notify_event(x, y, guiEvent=None)¶
Backend derived classes should call this function on any motion-notify-event.
This method will call all functions connected to the ‘motion_notify_event’ with a
MouseEvent
instance.- xscalar
the canvas coordinates where 0=left
- yscalar
the canvas coordinates where 0=bottom
- guiEvent
the native UI event that generated the mpl event
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseEventCoords(pos)¶
Calculate mouse coordinates in physical pixels
Qt5 use logical pixels, but the figure is scaled to physical pixels for rendering. Transform to physical pixels so that all of the down-stream transforms work as expected.
Also, the origin is different and needs to be corrected.
- mouseGrabber() QWidget ¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(event)¶
Add in the control modifier key to the button_press_event
- Parameters
event (QMouseEvent) – the QMouseEvent that triggered this handler
self._key is matplotlib’s way of storing the modifier keys
- mouseReleaseEvent(event)¶
Add in the control modifier key to the button_release_event
- Parameters
event (QMouseEvent) – the QMouseEvent that triggered this handler
self._key is matplotlib’s way of storing the modifier keys
- move(self, QPoint)¶
- RamaFigure.move(self, int, int) -> None
- moveEvent(self, QMoveEvent)¶
- moveToThread(self, QThread)¶
- mpl_connect(s, func)¶
Connect event with string s to func. The signature of func is:
def func(event)
where event is a
matplotlib.backend_bases.Event
. The following events are recognized‘button_press_event’
‘button_release_event’
‘draw_event’
‘key_press_event’
‘key_release_event’
‘motion_notify_event’
‘pick_event’
‘resize_event’
‘scroll_event’
‘figure_enter_event’,
‘figure_leave_event’,
‘axes_enter_event’,
‘axes_leave_event’
‘close_event’
For the location events (button and key press/release), if the mouse is over the axes, the variable
event.inaxes
will be set to theAxes
the event occurs is over, and additionally, the variablesevent.xdata
andevent.ydata
will be defined. This is the mouse location in data coords. SeeKeyEvent
andMouseEvent
for more info.Return value is a connection id that can be used with
mpl_disconnect()
.Usage:
def on_press(event): print('you pressed', event.button, event.xdata, event.ydata) cid = canvas.mpl_connect('button_press_event', on_press)
- mpl_disconnect(cid)¶
Disconnect callback id cid
Usage:
cid = canvas.mpl_connect('button_press_event', on_press) #...later canvas.mpl_disconnect(cid)
- nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int] ¶
- nativeParentWidget(self) QWidget ¶
- new_timer(*args, **kwargs)¶
Creates a new backend-specific subclass of
backend_bases.Timer
. This is useful for getting periodic events through the backend’s native event loop. Implemented only for backends with GUIs.- intervalscalar
Timer interval in milliseconds
- callbackslist
Sequence of (func, args, kwargs) where
func(*args, **kwargs)
will be executed by the timer every interval.
- nextInFocusChain(self) QWidget ¶
- normalGeometry(self) QRect ¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- onRemove(ev)¶
Deprecated since version 2.2: The onRemove function was deprecated in version 2.2.
Mouse event processor which removes the top artist under the cursor. Connect this to the ‘mouse_press_event’ using:
canvas.mpl_connect('mouse_press_event',canvas.onRemove)
- overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])¶
- overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])¶
- paintEngine(self) QPaintEngine ¶
- paintEvent(e)¶
Copy the image from the Agg canvas to the qt.drawable.
In Qt, all drawing should be done inside of here when a widget is shown onscreen.
- paintingActive(self) bool ¶
- palette(self) QPalette ¶
- parent(self) QObject ¶
- parentWidget(self) QWidget ¶
- physicalDpiX(self) int ¶
- physicalDpiY(self) int ¶
- pick(mouseevent)¶
- pick_event(mouseevent, artist, **kwargs)¶
This method will be called by artists who are picked and will fire off
PickEvent
callbacks registered listeners
- pos(self) QPoint ¶
- previousInFocusChain(self) QWidget ¶
- print_figure(*args, **kwargs)¶
Render the figure to hardcopy. Set the figure patch face and edge colors. This is useful because some of the GUIs have a gray figure face color background and you’ll probably want to override this on hardcopy.
- filename
can also be a file object on image backends
- orientation{‘landscape’, ‘portrait’}, optional
only currently applies to PostScript printing.
- dpiscalar, optional
the dots per inch to save the figure in; if None, use savefig.dpi
- facecolorcolor spec or None, optional
the facecolor of the figure; if None, defaults to savefig.facecolor
- edgecolorcolor spec or None, optional
the edgecolor of the figure; if None, defaults to savefig.edgecolor
- formatstr, optional
when set, forcibly set the file format to save to
- bbox_inchesstr or
Bbox
, optional Bbox in inches. Only the given portion of the figure is saved. If ‘tight’, try to figure out the tight bbox of the figure. If None, use savefig.bbox
- pad_inchesscalar, optional
Amount of padding around the figure when bbox_inches is ‘tight’. If None, use savefig.pad_inches
- bbox_extra_artistslist of
Artist
, optional A list of extra artists that will be considered when the tight bbox is calculated.
- print_jpeg(filename_or_obj, *args, **kwargs)¶
- qualityint
The image quality, on a scale from 1 (worst) to 95 (best). The default is 95, if not given in the matplotlibrc file in the savefig.jpeg_quality parameter. Values above 95 should be avoided; 100 completely disables the JPEG quantization stage.
- optimizebool
If present, indicates that the encoder should make an extra pass over the image in order to select optimal encoder settings.
- progressivebool
If present, indicates that this image should be stored as a progressive JPEG file.
- print_jpg(filename_or_obj, *args, **kwargs)¶
- qualityint
The image quality, on a scale from 1 (worst) to 95 (best). The default is 95, if not given in the matplotlibrc file in the savefig.jpeg_quality parameter. Values above 95 should be avoided; 100 completely disables the JPEG quantization stage.
- optimizebool
If present, indicates that the encoder should make an extra pass over the image in order to select optimal encoder settings.
- progressivebool
If present, indicates that this image should be stored as a progressive JPEG file.
- print_png(filename_or_obj, *args, **kwargs)¶
- print_raw(filename_or_obj, *args, **kwargs)¶
- print_rgba(filename_or_obj, *args, **kwargs)¶
- print_tif(filename_or_obj, *args, **kwargs)¶
- print_tiff(filename_or_obj, *args, **kwargs)¶
- print_to_buffer()¶
- 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)¶
- release_mouse(ax)¶
Release the mouse grab held by the axes, ax. Usually called by the widgets. It is ok to call this even if you ax doesn’t have the mouse grab currently.
- removeAction(self, QAction)¶
- removeEventFilter(self, QObject)¶
- render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren))¶
- render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren)) None
- repaint(self)¶
- RamaFigure.repaint(self, int, int, int, int) -> None
- repaint(self, QRect) None
- repaint(self, QRegion) None
- resize(self, QSize)¶
- RamaFigure.resize(self, int, int) -> None
- resizeEvent(self, QResizeEvent)¶
- resize_event()¶
Pass a
ResizeEvent
to all functions connected toresize_event
.
- restoreGeometry(self, Union[QByteArray, bytes, bytearray]) bool ¶
- restore_region(region, bbox=None, xy=None)¶
- saveGeometry(self) QByteArray ¶
- RamaFigure.scroll(self, int, int)
- RamaFigure.scroll(self, int, int, QRect) -> None
- scroll_event(x, y, step, guiEvent=None)¶
Backend derived classes should call this function on any scroll wheel event. x,y are the canvas coords: 0,0 is lower, left. button and key are as defined in MouseEvent.
This method will be call all functions connected to the ‘scroll_event’ with a
MouseEvent
instance.
- 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)¶
- RamaFigure.setBaseSize(self, int, int)
- setBaseSize(self, QSize) None ¶
- RamaFigure.setContentsMargins(self, int, int, int, int)
- setContentsMargins(self, QMargins) None ¶
- setContextMenuPolicy(self, Qt.ContextMenuPolicy)¶
- setCursor(self, Union[QCursor, Qt.CursorShape])¶
- setDisabled(self, bool)¶
- setEnabled(self, bool)¶
- setFixedHeight(self, int)¶
- setFixedSize(self, QSize)¶
- RamaFigure.setFixedSize(self, int, int) -> None
- setFixedWidth(self, int)¶
- setFocus(self)¶
- setFocus(self, Qt.FocusReason) None
- setFocusPolicy(self, Qt.FocusPolicy)¶
- setFocusProxy(self, QWidget)¶
- setFont(self, QFont)¶
- setForegroundRole(self, QPalette.ColorRole)¶
- setGeometry(self, QRect)¶
- RamaFigure.setGeometry(self, int, int, int, int) -> None
- 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) None
- setMaximumHeight(self, int)¶
- RamaFigure.setMaximumSize(self, int, int)
- setMaximumSize(self, QSize) None ¶
- setMaximumWidth(self, int)¶
- setMinimumHeight(self, int)¶
- RamaFigure.setMinimumSize(self, int, int)
- setMinimumSize(self, QSize) None ¶
- setMinimumWidth(self, int)¶
- setMouseTracking(self, bool)¶
- setObjectName(self, str)¶
- setPalette(self, QPalette)¶
- setParent(self, QWidget)¶
- setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType]) None
- setProperty(self, str, Any) bool ¶
- setShortcutAutoRepeat(self, int, enabled: bool = True)¶
- setShortcutEnabled(self, int, enabled: bool = True)¶
- RamaFigure.setSizeIncrement(self, int, int)
- setSizeIncrement(self, QSize) None ¶
- setSizePolicy(self, QSizePolicy)¶
- setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy) None
- setStatusTip(self, str)¶
- setStyle(self, QStyle)¶
- setStyleSheet(self, str)¶
- RamaFigure.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)¶
- set_window_title(title)¶
Set the title text of the window containing the figure. Note that this has no effect if there is no window (e.g., a PS backend).
- show(self)¶
- showEvent(self, QShowEvent)¶
- showFullScreen(self)¶
- showMaximized(self)¶
- showMinimized(self)¶
- showNormal(self)¶
- signalsBlocked(self) bool ¶
- size(self) QSize ¶
- sizeIncrement(self) QSize ¶
- sizePolicy(self) QSizePolicy ¶
- stackUnder(self, QWidget)¶
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- start_event_loop(timeout=0)¶
Start a blocking event loop.
Such an event loop is used by interactive functions, such as
ginput
andwaitforbuttonpress
, to wait for events.The event loop blocks until a callback function triggers
stop_event_loop
, or timeout is reached.If timeout is negative, never timeout.
Only interactive backends need to reimplement this method and it relies on
flush_events
being properly implemented.Interactive backends should implement this in a more native way.
- start_event_loop_default(timeout=0)¶
Deprecated since version 2.1: The start_event_loop_default function was deprecated in version 2.1.
Start a blocking event loop.
Such an event loop is used by interactive functions, such as
ginput
andwaitforbuttonpress
, to wait for events.The event loop blocks until a callback function triggers
stop_event_loop
, or timeout is reached.If timeout is negative, never timeout.
Only interactive backends need to reimplement this method and it relies on
flush_events
being properly implemented.Interactive backends should implement this in a more native way.
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>¶
- statusTip(self) str ¶
- stop_event_loop(event=None)¶
Stop the current blocking event loop.
Interactive backends need to reimplement this to match
start_event_loop
- stop_event_loop_default()¶
Deprecated since version 2.1: The stop_event_loop_default function was deprecated in version 2.1.
Stop the current blocking event loop.
Interactive backends need to reimplement this to match
start_event_loop
- style(self) QStyle ¶
- styleSheet(self) str ¶
- supports_blit = True¶
- switch_backends(FigureCanvasClass)¶
Instantiate an instance of FigureCanvasClass
This is used for backend switching, e.g., to instantiate a FigureCanvasPS from a FigureCanvasGTK. Note, deep copying is not done, so any changes to one of the instances (e.g., setting figure size or line props), will be reflected in the other
- tabletEvent(self, QTabletEvent)¶
- testAttribute(self, Qt.WidgetAttribute) bool ¶
- thread(self) QThread ¶
- timerEvent(self, QTimerEvent)¶
- toolTip(self) str ¶
- toolTipDuration(self) int ¶
- tostring_argb()¶
Get the image as an ARGB byte string
draw
must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.bytes
- tostring_rgb()¶
Get the image as an RGB byte string
draw
must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.bytes
- 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) None
- update(self, QRegion) None
- RamaFigure.update(self, int, int, int, int) -> None
- updateGeometry(self)¶
- updateMicroFocus(self)¶
- updatesEnabled(self) bool ¶
- visibleRegion(self) QRegion ¶
- whatsThis(self) str ¶
- wheelEvent(self, QWheelEvent)¶
- width(self) int ¶
- widthMM(self) int ¶
- winId(self) PyQt5.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.ui.qt.rama.DihedralSpinBox(layout, command, dtype)[source]¶
Bases:
PyQt5.QtWidgets.QDoubleSpinBox
A DoulbeSpinBox with min/max = -180/180, step=0.1, and takes a layout argument that it places itself in, and a command to call when its value changes.
- AdaptiveDecimalStepType = 1¶
- class ButtonSymbols¶
Bases:
int
- CorrectToNearestValue = 1¶
- CorrectToPreviousValue = 0¶
- class CorrectionMode¶
Bases:
int
- DefaultStepType = 0¶
- DrawChildren = 2¶
- DrawWindowBackground = 1¶
- IgnoreMask = 4¶
- NoButtons = 2¶
- class PaintDeviceMetric¶
Bases:
int
- PdmDepth = 6¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmHeight = 2¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmWidth = 1¶
- PdmWidthMM = 3¶
- PlusMinus = 1¶
- class RenderFlag¶
Bases:
int
- class RenderFlags¶
- class RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) None
- class RenderFlags(QWidget.RenderFlags) None
Bases:
sip.simplewrapper
- __init__(*args, **kwargs)¶
- StepDownEnabled = 2¶
- class StepEnabled¶
- class StepEnabled(Union[QAbstractSpinBox.StepEnabled, QAbstractSpinBox.StepEnabledFlag]) None
- class StepEnabled(QAbstractSpinBox.StepEnabled) None
Bases:
sip.simplewrapper
- __init__(*args, **kwargs)¶
- class StepEnabledFlag¶
Bases:
int
- StepNone = 0¶
- class StepType¶
Bases:
int
- StepUpEnabled = 1¶
- UpDownArrows = 0¶
- 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)¶
- alignment(self) Qt.Alignment ¶
- autoFillBackground(self) bool ¶
- backgroundRole(self) QPalette.ColorRole ¶
- baseSize(self) QSize ¶
- blockSignals(self, bool) bool ¶
- buttonSymbols(self) QAbstractSpinBox.ButtonSymbols ¶
- changeEvent(self, QEvent)¶
- childAt(self, QPoint) QWidget ¶
- DihedralSpinBox.childAt(self, int, int) -> QWidget
- childEvent(self, QChildEvent)¶
- children(self) List[QObject] ¶
- childrenRect(self) QRect ¶
- childrenRegion(self) QRegion ¶
- cleanText(self) str ¶
- clear(self)¶
- 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 ¶
- correctionMode(self) QAbstractSpinBox.CorrectionMode ¶
- create(self, window: PyQt5.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)¶
- decimals(self) int ¶
- 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(QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- editingFinished¶
editingFinished(self) [signal]
- effectiveWinId(self) PyQt5.sip.voidptr ¶
- ensurePolished(self)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- find(PyQt5.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]
- fixup(self, str) str ¶
- 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]) None
- grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) int ¶
- graphicsEffect(self) QGraphicsEffect ¶
- graphicsProxyWidget(self) QGraphicsProxyWidget ¶
- hasAcceptableInput(self) bool ¶
- hasFocus(self) bool ¶
- hasFrame(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)¶
- initStyleOption(self, QStyleOptionSpinBox)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- inputMethodHints(self) Qt.InputMethodHints ¶
- inputMethodQuery(self, Qt.InputMethodQuery) Any ¶
- DihedralSpinBox.insertAction(self, QAction, QAction)
- insertActions(self, QAction, Iterable[QAction])¶
- installEventFilter(self, QObject)¶
- interpretText(self)¶
- isAccelerated(self) bool ¶
- isActiveWindow(self) bool ¶
- isAncestorOf(self, QWidget) bool ¶
- isEnabled(self) bool ¶
- isEnabledTo(self, QWidget) bool ¶
- isFullScreen(self) bool ¶
- isGroupSeparatorShown(self) bool ¶
- isHidden(self) bool ¶
- isLeftToRight(self) bool ¶
- isMaximized(self) bool ¶
- isMinimized(self) bool ¶
- isModal(self) bool ¶
- isReadOnly(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 ¶
- keyboardTracking(self) bool ¶
- killTimer(self, int)¶
- layout(self) QLayout ¶
- layoutDirection(self) Qt.LayoutDirection ¶
- leaveEvent(self, QEvent)¶
- lineEdit(self) QLineEdit ¶
- 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 ¶
- maximum(self) float ¶
- maximumHeight(self) int ¶
- maximumSize(self) QSize ¶
- maximumWidth(self) int ¶
- metaObject(self) QMetaObject ¶
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- minimum(self) float ¶
- 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)¶
- DihedralSpinBox.move(self, int, int) -> None
- 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 ¶
- pos(self) QPoint ¶
- prefix(self) str ¶
- 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.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren))¶
- render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren)) None
- repaint(self)¶
- DihedralSpinBox.repaint(self, int, int, int, int) -> None
- repaint(self, QRect) None
- repaint(self, QRegion) None
- resize(self, QSize)¶
- DihedralSpinBox.resize(self, int, int) -> None
- resizeEvent(self, QResizeEvent)¶
- restoreGeometry(self, Union[QByteArray, bytes, bytearray]) bool ¶
- saveGeometry(self) QByteArray ¶
- DihedralSpinBox.scroll(self, int, int)
- DihedralSpinBox.scroll(self, int, int, QRect) -> None
- selectAll(self)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setAccelerated(self, bool)¶
- setAcceptDrops(self, bool)¶
- setAccessibleDescription(self, str)¶
- setAccessibleName(self, str)¶
- setAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])¶
- setAttribute(self, Qt.WidgetAttribute, on: bool = True)¶
- setAutoFillBackground(self, bool)¶
- setBackgroundRole(self, QPalette.ColorRole)¶
- DihedralSpinBox.setBaseSize(self, int, int)
- setBaseSize(self, QSize) None ¶
- setButtonSymbols(self, QAbstractSpinBox.ButtonSymbols)¶
- DihedralSpinBox.setContentsMargins(self, int, int, int, int)
- setContentsMargins(self, QMargins) None ¶
- setContextMenuPolicy(self, Qt.ContextMenuPolicy)¶
- setCorrectionMode(self, QAbstractSpinBox.CorrectionMode)¶
- setCursor(self, Union[QCursor, Qt.CursorShape])¶
- setDecimals(self, int)¶
- setDisabled(self, bool)¶
- setEnabled(self, bool)¶
- setFixedHeight(self, int)¶
- setFixedSize(self, QSize)¶
- DihedralSpinBox.setFixedSize(self, int, int) -> None
- setFixedWidth(self, int)¶
- setFocus(self)¶
- setFocus(self, Qt.FocusReason) None
- setFocusPolicy(self, Qt.FocusPolicy)¶
- setFocusProxy(self, QWidget)¶
- setFont(self, QFont)¶
- setForegroundRole(self, QPalette.ColorRole)¶
- setFrame(self, bool)¶
- setGeometry(self, QRect)¶
- DihedralSpinBox.setGeometry(self, int, int, int, int) -> None
- setGraphicsEffect(self, QGraphicsEffect)¶
- setGroupSeparatorShown(self, bool)¶
- setHidden(self, bool)¶
- setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])¶
- setKeyboardTracking(self, bool)¶
- setLayout(self, QLayout)¶
- setLayoutDirection(self, Qt.LayoutDirection)¶
- setLineEdit(self, QLineEdit)¶
- setLocale(self, QLocale)¶
- setMask(self, QBitmap)¶
- setMask(self, QRegion) None
- setMaximum(self, float)¶
- setMaximumHeight(self, int)¶
- DihedralSpinBox.setMaximumSize(self, int, int)
- setMaximumSize(self, QSize) None ¶
- setMaximumWidth(self, int)¶
- setMinimum(self, float)¶
- setMinimumHeight(self, int)¶
- DihedralSpinBox.setMinimumSize(self, int, int)
- setMinimumSize(self, QSize) None ¶
- setMinimumWidth(self, int)¶
- setMouseTracking(self, bool)¶
- setObjectName(self, str)¶
- setPalette(self, QPalette)¶
- setParent(self, QWidget)¶
- setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType]) None
- setPrefix(self, str)¶
- setProperty(self, str, Any) bool ¶
- DihedralSpinBox.setRange(self, float, float)
- setReadOnly(self, bool)¶
- setShortcutAutoRepeat(self, int, enabled: bool = True)¶
- setShortcutEnabled(self, int, enabled: bool = True)¶
- setSingleStep(self, float)¶
- DihedralSpinBox.setSizeIncrement(self, int, int)
- setSizeIncrement(self, QSize) None ¶
- setSizePolicy(self, QSizePolicy)¶
- setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy) None
- setSpecialValueText(self, str)¶
- setStatusTip(self, str)¶
- setStepType(self, QAbstractSpinBox.StepType)¶
- setStyle(self, QStyle)¶
- setStyleSheet(self, str)¶
- setSuffix(self, str)¶
- DihedralSpinBox.setTabOrder(QWidget, QWidget)
- setTabletTracking(self, bool)¶
- setToolTip(self, str)¶
- setToolTipDuration(self, int)¶
- setUpdatesEnabled(self, bool)¶
- setValue(self, float)¶
- 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)¶
- setWrapping(self, bool)¶
- show(self)¶
- showEvent(self, QShowEvent)¶
- showFullScreen(self)¶
- showMaximized(self)¶
- showMinimized(self)¶
- showNormal(self)¶
- signalsBlocked(self) bool ¶
- singleStep(self) float ¶
- size(self) QSize ¶
- sizeHint(self) QSize ¶
- sizeIncrement(self) QSize ¶
- sizePolicy(self) QSizePolicy ¶
- specialValueText(self) str ¶
- stackUnder(self, QWidget)¶
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>¶
- statusTip(self) str ¶
- stepBy(self, int)¶
- stepDown(self)¶
- stepEnabled(self) QAbstractSpinBox.StepEnabled ¶
- stepType(self) QAbstractSpinBox.StepType ¶
- stepUp(self)¶
- style(self) QStyle ¶
- styleSheet(self) str ¶
- suffix(self) str ¶
- tabletEvent(self, QTabletEvent)¶
- testAttribute(self, Qt.WidgetAttribute) bool ¶
- text(self) str ¶
- textFromValue(self, float) str ¶
- 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) None
- update(self, QRegion) None
- DihedralSpinBox.update(self, int, int, int, int) -> None
- updateGeometry(self)¶
- updateMicroFocus(self)¶
- updatesEnabled(self) bool ¶
- validate(self, str, int) Tuple[QValidator.State, str, int] ¶
- value(self) float ¶
- valueChanged¶
valueChanged(self, float) [signal] valueChanged(self, str) [signal]
- valueFromText(self, str) float ¶
- visibleRegion(self) QRegion ¶
- whatsThis(self) str ¶
- wheelEvent(self, QWheelEvent)¶
- width(self) int ¶
- widthMM(self) int ¶
- winId(self) PyQt5.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 ¶
- wrapping(self) bool ¶
- x(self) int ¶
- y(self) int ¶
- class schrodinger.ui.qt.rama.Rama(widget, layout, size=450, ticks=30, show_status=True, show_counters=False, zoom_on_pick=True, dpi=100, multiselect=False)[source]¶
Bases:
object
A class showing a matplotlib plot of the Phi and Psi angles in a helix
- DEFAULT_CURSOR = 'crosshair'¶
- DEFAULT_SYMBOL_SIZE = 1¶
- DEF_COLOR = 'black'¶
- GLY_COLOR = 'black'¶
- PRO_COLOR = 'black'¶
- FAVORABLE_COLOR = '#f20000'¶
- ALLOWED_COLOR = '#ffff00'¶
- ZOOMSTEP = 10.0¶
- SYMBOL_SCALING_FACTOR = 2¶
- ESC_KEY = 27¶
- __init__(widget, layout, size=450, ticks=30, show_status=True, show_counters=False, zoom_on_pick=True, dpi=100, multiselect=False)[source]¶
Create a Rama object
- Parameters
widget (QWidget) – the PyQt widget that ‘owns’ this plot
layout (QLayout) – the layout to place the plot into
size (int) – size of square plot in pixels, (default=450).
dpi (int) – dots per inch resolution of plot (default=100).
size – unused, kept for backward compatibility
show_status (bool) – If True, cursor location feedback is given in the matplotlib toolbar
show_counters (bool) – If True, show controls for changing the Phi and Psi values of the selected dihedral. Only one of multiselect and show_counters can be True.
zoom_on_pick (bool) – If True, zoom the Maestro workspace to the dihedral picked
multiselect (bool) – If True, the user can pick multiple points with shift/cntl-click. If False (default), only one point can be picked at a time. Only one of multiselect and show_counters can be True.
- find_connected_atom(ct, iatom, atname)[source]¶
Return the atom index with PDB atom type atname attached to iatom in ct, or -1 if no connection is found.
- get_connected_pair(ct, iatom, at1name, at2name)[source]¶
Return a pair of atom indexes, where at1name is attached to iatom and at2name is attached to at1name.
- update_point_faces(indexes)[source]¶
Update the face colors for points on the plot - faster than doing a complete replot.
- Parameters
indexes (list) – List of indexes to recolor. Should be the index of the point in the self.dihedral_list list
- update_point_xval(index, xval)[source]¶
Update the x-value of a point on the plot
- Parameters
index (int) – The index of the point in the self.dihedral_list list
- update_point_yval(index, yval)[source]¶
Update the y-value of a point
- Parameters
index (int) – The index of the point in the self.dihedral_list list
- save()[source]¶
Store the current phi & psi values of the current point.
This method only makes sense with multiselect == False
- revert_to_original()[source]¶
Set the current point to its original phi & psi values
This method only makes sense with multiselect == False
- revert_to_saved()[source]¶
Set the current point to its previously saved phi & psi values
This method only makes sense with multiselect == False
- display_residue(which='all')[source]¶
Select residues in the workspace corresponding to the given points
- Parameters
which (int, None or 'all') – If None, all residues are deselected. If an integer, that integer is taken as the index in the dihedral list to select. If ‘all’, residues for all selected points are selected.
- adjust_phi(value)[source]¶
React to changed value of the Phi spinbox
The method only makes sense with multiselect == False
- Parameters
value (float) – new value of the spinbox
- adjust_psi(value)[source]¶
React to changed value of the Psi spinbox
The method only makes sense with multiselect == False
- Parameters
value (float) – new value of the spinbox
- apply_dihedral(idihedral)[source]¶
Change the value of a dihedral
- Parameters
idihedral (int) – The index of the dihedral to change
- drag(event)[source]¶
As the user moves the mouse over a point, display information for that point in the toolbar and select the corresponding residue in the workspace.
- Parameters
event (matplotlib MouseEvent) – The event that generated the call to this method.
- find_closest_point(event)[source]¶
Find the plot point that is closest to the event
- Parameters
event (MouseEvent) – The matplotlib mouse event that generates this call
- get_picked()[source]¶
Get the backbone_dihedral object for the selected dihedral that was most recently selected.
- Return type
backbone_dihedral
object or None- Returns
The
backbone_dihedral
object for the selected dihedral that was most recently selected, or None if there are no selected dihedrals.