schrodinger.ui.qt.structtable module¶
This module provides classes that can be used to create Qt tables that show 2D structures in the cells.
This module was designed to be used with 2D Viewer and CombiGlide panels. Please notify the module developers if you plan to use it with your code, because the module behavior may change without notice.
Copyright Schrodinger, LLC. All rights reserved.
- schrodinger.ui.qt.structtable.draw_picture_into_rect(*args, **kwargs)¶
Draw a QPicture into a given rectangle.
This function has been moved to swidgets.draw_picture_into_rect.
- Parameters
painter (QtGui.QPainter object) – QPainter object that will do the drawing into the cell.
pic (QPicture) – the picture to be drawn into the rectangle
rect (QRect) – the rectangle that defines the drawing region
max_scale (int) – The maximum amount to scale the picture while attempting to make it fit into rect. This value is multipled by the scale factor required to fit a 150(wide) x 100 (high) picture to fit that picture into rect. The resulting product (max_scale * reference picture scale) is the true maximum scale factor allowed.
- class schrodinger.ui.qt.structtable.ViewerTable(tablemodel, parent=None)¶
Bases:
PyQt6.QtWidgets.QTableView- __init__(tablemodel, parent=None)¶
- cellAspectRatio()¶
- setDelegate(d)¶
- delegate()¶
- setAutoResize(val)¶
- autoResize()¶
- resizeEvent(self, QResizeEvent)¶
- isScrolling()¶
- isActivelyScrolling()¶
- AboveItem = 1¶
- AdjustIgnored = 0¶
- AdjustToContents = 2¶
- AdjustToContentsOnFirstShow = 1¶
- AllEditTriggers = 31¶
- AnimatingState = 6¶
- AnyKeyPressed = 16¶
- BelowItem = 2¶
- Box = 1¶
- CollapsingState = 5¶
- ContiguousSelection = 4¶
- CurrentChanged = 1¶
- class CursorAction(value)¶
Bases:
enum.EnumAn enumeration.
- MoveUp = 0¶
- MoveDown = 1¶
- MoveLeft = 2¶
- MoveRight = 3¶
- MoveHome = 4¶
- MoveEnd = 5¶
- MovePageUp = 6¶
- MovePageDown = 7¶
- MoveNext = 8¶
- MovePrevious = 9¶
- DoubleClicked = 2¶
- DragDrop = 3¶
- class DragDropMode(value)¶
Bases:
enum.EnumAn enumeration.
- NoDragDrop = 0¶
- DragOnly = 1¶
- DropOnly = 2¶
- DragDrop = 3¶
- InternalMove = 4¶
- DragOnly = 1¶
- DragSelectingState = 2¶
- DraggingState = 1¶
- DrawChildren = 2¶
- DrawWindowBackground = 1¶
- class DropIndicatorPosition(value)¶
Bases:
enum.EnumAn enumeration.
- OnItem = 0¶
- AboveItem = 1¶
- BelowItem = 2¶
- OnViewport = 3¶
- DropOnly = 2¶
- EditKeyPressed = 8¶
- class EditTrigger(value)¶
Bases:
enum.FlagAn enumeration.
- NoEditTriggers = 0¶
- CurrentChanged = 1¶
- DoubleClicked = 2¶
- SelectedClicked = 4¶
- EditKeyPressed = 8¶
- AnyKeyPressed = 16¶
- AllEditTriggers = 31¶
- EditingState = 3¶
- EnsureVisible = 0¶
- ExpandingState = 4¶
- ExtendedSelection = 3¶
- HLine = 4¶
- IgnoreMask = 4¶
- InternalMove = 4¶
- MoveDown = 1¶
- MoveEnd = 5¶
- MoveHome = 4¶
- MoveLeft = 2¶
- MoveNext = 8¶
- MovePageDown = 7¶
- MovePageUp = 6¶
- MovePrevious = 9¶
- MoveRight = 3¶
- MoveUp = 0¶
- MultiSelection = 2¶
- NoDragDrop = 0¶
- NoEditTriggers = 0¶
- NoFrame = 0¶
- NoSelection = 0¶
- NoState = 0¶
- OnItem = 0¶
- OnViewport = 3¶
- class PaintDeviceMetric(value)¶
Bases:
enum.EnumAn enumeration.
- PdmWidth = 1¶
- PdmHeight = 2¶
- PdmWidthMM = 3¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmDepth = 6¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- Panel = 2¶
- PdmDepth = 6¶
- PdmDevicePixelRatio = 11¶
- PdmDevicePixelRatioScaled = 12¶
- PdmDpiX = 7¶
- PdmDpiY = 8¶
- PdmHeight = 2¶
- PdmHeightMM = 4¶
- PdmNumColors = 5¶
- PdmPhysicalDpiX = 9¶
- PdmPhysicalDpiY = 10¶
- PdmWidth = 1¶
- PdmWidthMM = 3¶
- Plain = 16¶
- PositionAtBottom = 2¶
- PositionAtCenter = 3¶
- PositionAtTop = 1¶
- Raised = 32¶
- class RenderFlag(value)¶
Bases:
enum.FlagAn enumeration.
- DrawWindowBackground = 1¶
- DrawChildren = 2¶
- IgnoreMask = 4¶
- class ScrollHint(value)¶
Bases:
enum.EnumAn enumeration.
- EnsureVisible = 0¶
- PositionAtTop = 1¶
- PositionAtBottom = 2¶
- PositionAtCenter = 3¶
- ScrollPerItem = 0¶
- ScrollPerPixel = 1¶
- SelectColumns = 2¶
- SelectItems = 0¶
- SelectRows = 1¶
- SelectedClicked = 4¶
- class SelectionBehavior(value)¶
Bases:
enum.EnumAn enumeration.
- SelectItems = 0¶
- SelectRows = 1¶
- SelectColumns = 2¶
- class SelectionMode(value)¶
Bases:
enum.EnumAn enumeration.
- NoSelection = 0¶
- SingleSelection = 1¶
- MultiSelection = 2¶
- ExtendedSelection = 3¶
- ContiguousSelection = 4¶
- Shadow_Mask = 240¶
- class Shape(value)¶
Bases:
enum.IntEnumAn enumeration.
- NoFrame = 0¶
- Box = 1¶
- Panel = 2¶
- WinPanel = 3¶
- HLine = 4¶
- VLine = 5¶
- StyledPanel = 6¶
- Shape_Mask = 15¶
- SingleSelection = 1¶
- class SizeAdjustPolicy(value)¶
Bases:
enum.EnumAn enumeration.
- AdjustIgnored = 0¶
- AdjustToContentsOnFirstShow = 1¶
- AdjustToContents = 2¶
- class State(value)¶
Bases:
enum.EnumAn enumeration.
- NoState = 0¶
- DraggingState = 1¶
- DragSelectingState = 2¶
- EditingState = 3¶
- ExpandingState = 4¶
- CollapsingState = 5¶
- AnimatingState = 6¶
- StyledPanel = 6¶
- Sunken = 48¶
- VLine = 5¶
- WinPanel = 3¶
- acceptDrops(self) bool¶
- accessibleDescription(self) str¶
- accessibleName(self) str¶
- actionEvent(self, QActionEvent)¶
- actions(self) List[QAction]¶
- activateWindow(self)¶
- activated¶
activated(self, QModelIndex) [signal]
- addAction(self, QAction)¶
- addActions(self, Iterable[QAction])¶
- addScrollBarWidget(self, QWidget, Qt.AlignmentFlag)¶
- adjustSize(self)¶
- alternatingRowColors(self) bool¶
- autoFillBackground(self) bool¶
- autoScrollMargin(self) int¶
- backgroundRole(self) QPalette.ColorRole¶
- baseSize(self) QSize¶
- blockSignals(self, bool) bool¶
- changeEvent(self, QEvent)¶
- childAt(self, QPoint) QWidget¶
- ViewerTable.childAt(self, int, int) -> QWidget
- childEvent(self, QChildEvent)¶
- children(self) List[QObject]¶
- childrenRect(self) QRect¶
- childrenRegion(self) QRegion¶
- clearFocus(self)¶
- clearMask(self)¶
- clearSelection(self)¶
- clearSpans(self)¶
- clicked¶
clicked(self, QModelIndex) [signal]
- close(self) bool¶
- closeEditor(self, QWidget, QAbstractItemDelegate.EndEditHint)¶
- closeEvent(self, QCloseEvent)¶
- closePersistentEditor(self, QModelIndex)¶
- colorCount(self) int¶
- columnAt(self, int) int¶
- ViewerTable.columnCountChanged(self, int, int)
- ViewerTable.columnMoved(self, int, int, int)
- ViewerTable.columnResized(self, int, int, int)
- ViewerTable.columnSpan(self, int, int) -> int
- columnViewportPosition(self, int) int¶
- columnWidth(self, int) int¶
- commitData(self, QWidget)¶
- connectNotify(self, QMetaMethod)¶
- contentsMargins(self) QMargins¶
- contentsRect(self) QRect¶
- contextMenuEvent(self, QContextMenuEvent)¶
- contextMenuPolicy(self) Qt.ContextMenuPolicy¶
- cornerWidget(self) QWidget¶
- create(self, window: PyQt6.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- createWindowContainer(QWindow, parent: QWidget = None, flags: Qt.WindowType = Qt.WindowFlags()) QWidget¶
- ViewerTable.currentChanged(self, QModelIndex, QModelIndex)
- currentIndex(self) QModelIndex¶
- cursor(self) QCursor¶
- customContextMenuRequested¶
customContextMenuRequested(self, QPoint) [signal]
- customEvent(self, QEvent)¶
- ViewerTable.dataChanged(self, QModelIndex, QModelIndex, roles: Iterable[int] = [])
- defaultDropAction(self) Qt.DropAction¶
- deleteLater(self)¶
- depth(self) int¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- destroyed¶
destroyed(self, object: QObject = None) [signal]
- devType(self) int¶
- devicePixelRatio(self) float¶
- devicePixelRatioF(self) float¶
- devicePixelRatioFScale() float¶
- dirtyRegionOffset(self) QPoint¶
- disconnect(QMetaObject.Connection) bool¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- doubleClicked¶
doubleClicked(self, QModelIndex) [signal]
- dragDropMode(self) QAbstractItemView.DragDropMode¶
- dragDropOverwriteMode(self) bool¶
- dragEnabled(self) bool¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- drawFrame(self, QPainter)¶
- dropEvent(self, QDropEvent)¶
- dropIndicatorPosition(self) QAbstractItemView.DropIndicatorPosition¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray]¶
- edit(self, QModelIndex)¶
- edit(self, QModelIndex, QAbstractItemView.EditTrigger, QEvent) bool
- editTriggers(self) QAbstractItemView.EditTrigger¶
- editorDestroyed(self, QObject)¶
- effectiveWinId(self) PyQt6.sip.voidptr¶
- ensurePolished(self)¶
- enterEvent(self, QEnterEvent)¶
- entered¶
entered(self, QModelIndex) [signal]
- event(self, QEvent) bool¶
- eventFilter(self, QObject, QEvent) bool¶
- executeDelayedItemsLayout(self)¶
- find(PyQt6.sip.voidptr) QWidget¶
- findChild(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject¶
- findChild(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
- findChildren(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]¶
- findChildren(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool¶
- focusNextPrevChild(self, bool) bool¶
- focusOutEvent(self, QFocusEvent)¶
- focusPolicy(self) Qt.FocusPolicy¶
- focusPreviousChild(self) bool¶
- focusProxy(self) QWidget¶
- focusWidget(self) QWidget¶
- font(self) QFont¶
- fontInfo(self) QFontInfo¶
- fontMetrics(self) QFontMetrics¶
- foregroundRole(self) QPalette.ColorRole¶
- frameGeometry(self) QRect¶
- frameRect(self) QRect¶
- frameShadow(self) QFrame.Shadow¶
- frameShape(self) QFrame.Shape¶
- frameSize(self) QSize¶
- frameStyle(self) int¶
- frameWidth(self) int¶
- geometry(self) QRect¶
- grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) QPixmap¶
- grabGesture(self, Qt.GestureType, flags: 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¶
- gridStyle(self) Qt.PenStyle¶
- hasAutoScroll(self) bool¶
- hasFocus(self) bool¶
- hasHeightForWidth(self) bool¶
- hasMouseTracking(self) bool¶
- hasTabletTracking(self) bool¶
- height(self) int¶
- heightForWidth(self, int) int¶
- heightMM(self) int¶
- hide(self)¶
- hideColumn(self, int)¶
- hideEvent(self, QHideEvent)¶
- hideRow(self, int)¶
- horizontalHeader(self) QHeaderView¶
- horizontalOffset(self) int¶
- horizontalScrollBar(self) QScrollBar¶
- horizontalScrollBarPolicy(self) Qt.ScrollBarPolicy¶
- horizontalScrollMode(self) QAbstractItemView.ScrollMode¶
- horizontalScrollbarAction(self, int)¶
- horizontalScrollbarValueChanged(self, int)¶
- iconSize(self) QSize¶
- iconSizeChanged¶
iconSizeChanged(self, QSize) [signal]
- indexAt(self, QPoint) QModelIndex¶
- indexWidget(self, QModelIndex) QWidget¶
- inherits(self, str) bool¶
- initPainter(self, QPainter)¶
- initStyleOption(self, QStyleOptionFrame)¶
- initViewItemOption(self, QStyleOptionViewItem)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- inputMethodHints(self) Qt.InputMethodHint¶
- inputMethodQuery(self, Qt.InputMethodQuery) Any¶
- ViewerTable.insertAction(self, QAction, QAction)
- insertActions(self, QAction, Iterable[QAction])¶
- installEventFilter(self, QObject)¶
- isActiveWindow(self) bool¶
- isAncestorOf(self, QWidget) bool¶
- isColumnHidden(self, int) bool¶
- isCornerButtonEnabled(self) bool¶
- isEnabled(self) bool¶
- isEnabledTo(self, QWidget) bool¶
- isFullScreen(self) bool¶
- isHidden(self) bool¶
- isIndexHidden(self, QModelIndex) bool¶
- isLeftToRight(self) bool¶
- isMaximized(self) bool¶
- isMinimized(self) bool¶
- isModal(self) bool¶
- isPersistentEditorOpen(self, QModelIndex) bool¶
- isRightToLeft(self) bool¶
- isRowHidden(self, int) bool¶
- isSignalConnected(self, QMetaMethod) bool¶
- isSortingEnabled(self) bool¶
- isVisible(self) bool¶
- isVisibleTo(self, QWidget) bool¶
- isWidgetType(self) bool¶
- isWindow(self) bool¶
- isWindowModified(self) bool¶
- isWindowType(self) bool¶
- itemDelegate(self) QAbstractItemDelegate¶
- itemDelegateForColumn(self, int) QAbstractItemDelegate¶
- itemDelegateForIndex(self, QModelIndex) QAbstractItemDelegate¶
- itemDelegateForRow(self, int) QAbstractItemDelegate¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- keyboardGrabber() QWidget¶
- keyboardSearch(self, str)¶
- killTimer(self, int)¶
- layout(self) QLayout¶
- layoutDirection(self) Qt.LayoutDirection¶
- leaveEvent(self, QEvent)¶
- lineWidth(self) int¶
- locale(self) QLocale¶
- logicalDpiX(self) int¶
- logicalDpiY(self) int¶
- lower(self)¶
- mapFrom(self, QWidget, QPoint) QPoint¶
- mapFrom(self, QWidget, QPointF) QPointF
- mapFromGlobal(self, QPoint) QPoint¶
- mapFromGlobal(self, QPointF) QPointF
- mapFromParent(self, QPoint) QPoint¶
- mapFromParent(self, QPointF) QPointF
- mapTo(self, QWidget, QPoint) QPoint¶
- mapTo(self, QWidget, QPointF) QPointF
- mapToGlobal(self, QPoint) QPoint¶
- mapToGlobal(self, QPointF) QPointF
- mapToParent(self, QPoint) QPoint¶
- mapToParent(self, QPointF) QPointF
- mask(self) QRegion¶
- maximumHeight(self) int¶
- maximumSize(self) QSize¶
- maximumViewportSize(self) QSize¶
- maximumWidth(self) int¶
- metaObject(self) QMetaObject¶
- metric(self, QPaintDevice.PaintDeviceMetric) int¶
- midLineWidth(self) int¶
- minimumHeight(self) int¶
- minimumSize(self) QSize¶
- minimumSizeHint(self) QSize¶
- minimumWidth(self) int¶
- model(self) QAbstractItemModel¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseGrabber() QWidget¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- move(self, QPoint)¶
- ViewerTable.move(self, int, int) -> None
- moveCursor(self, QAbstractItemView.CursorAction, Qt.KeyboardModifier) QModelIndex¶
- moveEvent(self, QMoveEvent)¶
- moveToThread(self, QThread)¶
- nativeEvent(self, QByteArray, PyQt6.sip.voidptr) Tuple[bool, PyQt6.sip.voidptr]¶
- nativeParentWidget(self) QWidget¶
- nextInFocusChain(self) QWidget¶
- normalGeometry(self) QRect¶
- objectName(self) str¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- openPersistentEditor(self, QModelIndex)¶
- overrideWindowFlags(self, Qt.WindowType)¶
- overrideWindowState(self, Qt.WindowState)¶
- paintEngine(self) QPaintEngine¶
- paintEvent(self, QPaintEvent)¶
- paintingActive(self) bool¶
- palette(self) QPalette¶
- parent(self) QObject¶
- parentWidget(self) QWidget¶
- physicalDpiX(self) int¶
- physicalDpiY(self) int¶
- pos(self) QPoint¶
- pressed¶
pressed(self, QModelIndex) [signal]
- previousInFocusChain(self) QWidget¶
- property(self, str) Any¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- raise_(self)¶
- receivers(self, PYQT_SIGNAL) int¶
- rect(self) QRect¶
- releaseKeyboard(self)¶
- releaseMouse(self)¶
- releaseShortcut(self, int)¶
- removeAction(self, QAction)¶
- removeEventFilter(self, QObject)¶
- render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))¶
- render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlag = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren)) None
- repaint(self)¶
- ViewerTable.repaint(self, int, int, int, int) -> None
- repaint(self, QRect) None
- repaint(self, QRegion) None
- reset(self)¶
- resetHorizontalScrollMode(self)¶
- resetVerticalScrollMode(self)¶
- resize(self, QSize)¶
- ViewerTable.resize(self, int, int) -> None
- resizeColumnToContents(self, int)¶
- resizeColumnsToContents(self)¶
- resizeRowToContents(self, int)¶
- resizeRowsToContents(self)¶
- restoreGeometry(self, QByteArray) bool¶
- rootIndex(self) QModelIndex¶
- rowAt(self, int) int¶
- ViewerTable.rowCountChanged(self, int, int)
- rowHeight(self, int) int¶
- ViewerTable.rowMoved(self, int, int, int)
- ViewerTable.rowResized(self, int, int, int)
- ViewerTable.rowSpan(self, int, int) -> int
- rowViewportPosition(self, int) int¶
- ViewerTable.rowsAboutToBeRemoved(self, QModelIndex, int, int)
- ViewerTable.rowsInserted(self, QModelIndex, int, int)
- saveGeometry(self) QByteArray¶
- scheduleDelayedItemsLayout(self)¶
- screen(self) QScreen¶
- ViewerTable.scroll(self, int, int)
- ViewerTable.scroll(self, int, int, QRect) -> None
- scrollBarWidgets(self, Qt.AlignmentFlag) List[QWidget]¶
- ViewerTable.scrollContentsBy(self, int, int)
- ViewerTable.scrollDirtyRegion(self, int, int)
- scrollTo(self, QModelIndex, hint: QAbstractItemView.ScrollHint = QAbstractItemView.EnsureVisible)¶
- scrollToBottom(self)¶
- scrollToTop(self)¶
- selectAll(self)¶
- selectColumn(self, int)¶
- selectRow(self, int)¶
- selectedIndexes(self) List[QModelIndex]¶
- selectionBehavior(self) QAbstractItemView.SelectionBehavior¶
- ViewerTable.selectionChanged(self, QItemSelection, QItemSelection)
- selectionCommand(self, QModelIndex, event: QEvent = None) QItemSelectionModel.SelectionFlag¶
- selectionMode(self) QAbstractItemView.SelectionMode¶
- selectionModel(self) QItemSelectionModel¶
- sender(self) QObject¶
- senderSignalIndex(self) int¶
- setAcceptDrops(self, bool)¶
- setAccessibleDescription(self, str)¶
- setAccessibleName(self, str)¶
- setAlternatingRowColors(self, bool)¶
- setAttribute(self, Qt.WidgetAttribute, on: bool = True)¶
- setAutoFillBackground(self, bool)¶
- setAutoScroll(self, bool)¶
- setAutoScrollMargin(self, int)¶
- setBackgroundRole(self, QPalette.ColorRole)¶
- ViewerTable.setBaseSize(self, int, int)
- setBaseSize(self, QSize) None¶
- setColumnHidden(self, int, bool)¶
- ViewerTable.setColumnWidth(self, int, int)
- ViewerTable.setContentsMargins(self, int, int, int, int)
- setContentsMargins(self, QMargins) None¶
- setContextMenuPolicy(self, Qt.ContextMenuPolicy)¶
- setCornerButtonEnabled(self, bool)¶
- setCornerWidget(self, QWidget)¶
- setCurrentIndex(self, QModelIndex)¶
- setCursor(self, Union[QCursor, Qt.CursorShape])¶
- setDefaultDropAction(self, Qt.DropAction)¶
- setDirtyRegion(self, QRegion)¶
- setDisabled(self, bool)¶
- setDragDropMode(self, QAbstractItemView.DragDropMode)¶
- setDragDropOverwriteMode(self, bool)¶
- setDragEnabled(self, bool)¶
- setDropIndicatorShown(self, bool)¶
- setEditTriggers(self, QAbstractItemView.EditTrigger)¶
- setEnabled(self, bool)¶
- setFixedHeight(self, int)¶
- setFixedSize(self, QSize)¶
- ViewerTable.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)¶
- setFrameRect(self, QRect)¶
- setFrameShadow(self, QFrame.Shadow)¶
- setFrameShape(self, QFrame.Shape)¶
- setFrameStyle(self, int)¶
- setGeometry(self, QRect)¶
- ViewerTable.setGeometry(self, int, int, int, int) -> None
- setGraphicsEffect(self, QGraphicsEffect)¶
- setGridStyle(self, Qt.PenStyle)¶
- setHidden(self, bool)¶
- setHorizontalHeader(self, QHeaderView)¶
- setHorizontalScrollBar(self, QScrollBar)¶
- setHorizontalScrollBarPolicy(self, Qt.ScrollBarPolicy)¶
- setHorizontalScrollMode(self, QAbstractItemView.ScrollMode)¶
- setIconSize(self, QSize)¶
- setIndexWidget(self, QModelIndex, QWidget)¶
- setInputMethodHints(self, Qt.InputMethodHint)¶
- setItemDelegate(self, QAbstractItemDelegate)¶
- setItemDelegateForColumn(self, int, QAbstractItemDelegate)¶
- setItemDelegateForRow(self, int, QAbstractItemDelegate)¶
- setLayout(self, QLayout)¶
- setLayoutDirection(self, Qt.LayoutDirection)¶
- setLineWidth(self, int)¶
- setLocale(self, QLocale)¶
- setMask(self, QBitmap)¶
- setMask(self, QRegion) None
- setMaximumHeight(self, int)¶
- ViewerTable.setMaximumSize(self, int, int)
- setMaximumSize(self, QSize) None¶
- setMaximumWidth(self, int)¶
- setMidLineWidth(self, int)¶
- setMinimumHeight(self, int)¶
- ViewerTable.setMinimumSize(self, int, int)
- setMinimumSize(self, QSize) None¶
- setMinimumWidth(self, int)¶
- setModel(self, QAbstractItemModel)¶
- setMouseTracking(self, bool)¶
- setObjectName(self, str)¶
- setPalette(self, QPalette)¶
- setParent(self, QWidget)¶
- setParent(self, QWidget, Qt.WindowType) None
- setProperty(self, str, Any) bool¶
- setRootIndex(self, QModelIndex)¶
- ViewerTable.setRowHeight(self, int, int)
- setRowHidden(self, int, bool)¶
- setScreen(self, QScreen)¶
- setSelection(self, QRect, QItemSelectionModel.SelectionFlag)¶
- setSelectionBehavior(self, QAbstractItemView.SelectionBehavior)¶
- setSelectionMode(self, QAbstractItemView.SelectionMode)¶
- setSelectionModel(self, QItemSelectionModel)¶
- setShortcutAutoRepeat(self, int, enabled: bool = True)¶
- setShortcutEnabled(self, int, enabled: bool = True)¶
- setShowGrid(self, bool)¶
- setSizeAdjustPolicy(self, QAbstractScrollArea.SizeAdjustPolicy)¶
- ViewerTable.setSizeIncrement(self, int, int)
- setSizeIncrement(self, QSize) None¶
- setSizePolicy(self, QSizePolicy)¶
- setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy) None
- setSortingEnabled(self, bool)¶
- ViewerTable.setSpan(self, int, int, int, int)
- setState(self, QAbstractItemView.State)¶
- setStatusTip(self, str)¶
- setStyle(self, QStyle)¶
- setStyleSheet(self, str)¶
- ViewerTable.setTabOrder(QWidget, QWidget)
- setTabletTracking(self, bool)¶
- setTextElideMode(self, Qt.TextElideMode)¶
- setToolTip(self, str)¶
- setToolTipDuration(self, int)¶
- setUpdatesEnabled(self, bool)¶
- setVerticalHeader(self, QHeaderView)¶
- setVerticalScrollBar(self, QScrollBar)¶
- setVerticalScrollBarPolicy(self, Qt.ScrollBarPolicy)¶
- setVerticalScrollMode(self, QAbstractItemView.ScrollMode)¶
- setViewport(self, QWidget)¶
- ViewerTable.setViewportMargins(self, int, int, int, int)
- setViewportMargins(self, QMargins) None¶
- setVisible(self, bool)¶
- setWhatsThis(self, str)¶
- setWindowFilePath(self, str)¶
- setWindowFlag(self, Qt.WindowType, on: bool = True)¶
- setWindowFlags(self, Qt.WindowType)¶
- setWindowIcon(self, QIcon)¶
- setWindowIconText(self, str)¶
- setWindowModality(self, Qt.WindowModality)¶
- setWindowModified(self, bool)¶
- setWindowOpacity(self, float)¶
- setWindowRole(self, str)¶
- setWindowState(self, Qt.WindowState)¶
- setWindowTitle(self, str)¶
- setWordWrap(self, bool)¶
- setupViewport(self, QWidget)¶
- show(self)¶
- showColumn(self, int)¶
- showDropIndicator(self) bool¶
- showEvent(self, QShowEvent)¶
- showFullScreen(self)¶
- showGrid(self) bool¶
- showMaximized(self)¶
- showMinimized(self)¶
- showNormal(self)¶
- showRow(self, int)¶
- signalsBlocked(self) bool¶
- size(self) QSize¶
- sizeAdjustPolicy(self) QAbstractScrollArea.SizeAdjustPolicy¶
- sizeHint(self) QSize¶
- sizeHintForColumn(self, int) int¶
- sizeHintForIndex(self, QModelIndex) QSize¶
- sizeHintForRow(self, int) int¶
- sizeIncrement(self) QSize¶
- sizePolicy(self) QSizePolicy¶
- sortByColumn(self, int, Qt.SortOrder)¶
- stackUnder(self, QWidget)¶
- startDrag(self, Qt.DropAction)¶
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int¶
- state(self) QAbstractItemView.State¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- statusTip(self) str¶
- style(self) QStyle¶
- styleSheet(self) str¶
- tabletEvent(self, QTabletEvent)¶
- testAttribute(self, Qt.WidgetAttribute) bool¶
- textElideMode(self) Qt.TextElideMode¶
- thread(self) QThread¶
- timerEvent(self, QTimerEvent)¶
- toolTip(self) str¶
- toolTipDuration(self) int¶
- tr(str, disambiguation: str = None, n: int = - 1) str¶
- underMouse(self) bool¶
- ungrabGesture(self, Qt.GestureType)¶
- unsetCursor(self)¶
- unsetLayoutDirection(self)¶
- unsetLocale(self)¶
- update(self)¶
- update(self, QModelIndex) None
- updateEditorData(self)¶
- updateEditorGeometries(self)¶
- updateGeometries(self)¶
- updateGeometry(self)¶
- updateMicroFocus(self, query: Qt.InputMethodQuery = Qt.ImQueryAll)¶
- updatesEnabled(self) bool¶
- verticalHeader(self) QHeaderView¶
- verticalOffset(self) int¶
- verticalScrollBar(self) QScrollBar¶
- verticalScrollBarPolicy(self) Qt.ScrollBarPolicy¶
- verticalScrollMode(self) QAbstractItemView.ScrollMode¶
- verticalScrollbarAction(self, int)¶
- verticalScrollbarValueChanged(self, int)¶
- viewport(self) QWidget¶
- viewportEntered¶
viewportEntered(self) [signal]
- viewportEvent(self, QEvent) bool¶
- viewportMargins(self) QMargins¶
- viewportSizeHint(self) QSize¶
- visibleRegion(self) QRegion¶
- visualRect(self, QModelIndex) QRect¶
- visualRegionForSelection(self, QItemSelection) QRegion¶
- whatsThis(self) str¶
- wheelEvent(self, QWheelEvent)¶
- width(self) int¶
- widthMM(self) int¶
- winId(self) PyQt6.sip.voidptr¶
- window(self) QWidget¶
- windowFilePath(self) str¶
- windowFlags(self) Qt.WindowType¶
- 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.WindowState¶
- windowTitle(self) str¶
- windowTitleChanged¶
windowTitleChanged(self, str) [signal]
- windowType(self) Qt.WindowType¶
- wordWrap(self) bool¶
- x(self) int¶
- y(self) int¶
- class schrodinger.ui.qt.structtable.ViewerModel(rowcount=0, columncount=4, unique=False)¶
Bases:
schrodinger.ui.qt.table.ViewerModelThis class has been moved to the new table module
- class CheckIndexOption(value)¶
Bases:
enum.FlagAn enumeration.
- NoOption = 0¶
- IndexIsValid = 1¶
- DoNotUseParent = 2¶
- ParentIsInvalid = 4¶
- DoNotUseParent = 2¶
- HorizontalSortHint = 2¶
- IndexIsValid = 1¶
- class LayoutChangeHint(value)¶
Bases:
enum.EnumAn enumeration.
- NoLayoutChangeHint = 0¶
- VerticalSortHint = 1¶
- HorizontalSortHint = 2¶
- NoLayoutChangeHint = 0¶
- NoOption = 0¶
- ParentIsInvalid = 4¶
- VerticalSortHint = 1¶
- __init__(rowcount=0, columncount=4, unique=False)¶
- appendStruct(struct)¶
- ViewerModel.beginInsertColumns(self, QModelIndex, int, int)
- ViewerModel.beginInsertRows(self, QModelIndex, int, int)
- ViewerModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- ViewerModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- ViewerModel.beginRemoveColumns(self, QModelIndex, int, int)
- ViewerModel.beginRemoveRows(self, QModelIndex, int, int)
- beginResetModel(self)¶
- blockSignals(self, bool) bool¶
- buddy(self, QModelIndex) QModelIndex¶
- canDropMimeData(self, QMimeData, Qt.DropAction, int, int, QModelIndex) bool¶
- canFetchMore(self, QModelIndex) bool¶
- ViewerModel.changePersistentIndex(self, QModelIndex, QModelIndex)
- changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
- checkIndex(self, QModelIndex, options: QAbstractItemModel.CheckIndexOption = QAbstractItemModel.CheckIndexOption.NoOption) bool¶
- childEvent(self, QChildEvent)¶
- children(self) List[QObject]¶
- clearItemData(self, QModelIndex) bool¶
- clearStructs()¶
- columnCount(self, parent: QModelIndex = QModelIndex()) int¶
- columnsAboutToBeInserted¶
columnsAboutToBeInserted(self, QModelIndex, int, int) [signal]
- columnsAboutToBeMoved¶
columnsAboutToBeMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]
- columnsAboutToBeRemoved¶
columnsAboutToBeRemoved(self, QModelIndex, int, int) [signal]
- columnsInserted¶
columnsInserted(self, QModelIndex, int, int) [signal]
- columnsMoved¶
columnsMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]
- columnsRemoved¶
columnsRemoved(self, QModelIndex, int, int) [signal]
- connectNotify(self, QMetaMethod)¶
- ViewerModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
- customEvent(self, QEvent)¶
- data(self, QModelIndex, role: int = Qt.DisplayRole) Any¶
- dataChanged¶
dataChanged(self, QModelIndex, QModelIndex, roles: Iterable[int] = []) [signal]
- ViewerModel.decodeData(self, int, int, QModelIndex, QDataStream) -> bool
- deleteLater(self)¶
- destroyed¶
destroyed(self, object: QObject = None) [signal]
- disconnect(QMetaObject.Connection) bool¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- dropMimeData(self, QMimeData, Qt.DropAction, int, int, QModelIndex) bool¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray]¶
- encodeData(self, Iterable[QModelIndex], QDataStream)¶
- endInsertColumns(self)¶
- endInsertRows(self)¶
- endMoveColumns(self)¶
- endMoveRows(self)¶
- endRemoveColumns(self)¶
- endRemoveRows(self)¶
- endResetModel(self)¶
- event(self, QEvent) bool¶
- eventFilter(self, QObject, QEvent) bool¶
- fetchMore(self, QModelIndex)¶
- findChild(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject¶
- findChild(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
- findChildren(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]¶
- findChildren(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- flags(self, QModelIndex) Qt.ItemFlag¶
- getStruct(index)¶
- hasChildren(self, parent: QModelIndex = QModelIndex()) bool¶
- ViewerModel.hasIndex(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
- headerData(self, int, Qt.Orientation, role: int = Qt.DisplayRole) Any¶
- headerDataChanged¶
headerDataChanged(self, Qt.Orientation, int, int) [signal]
- ViewerModel.index(self, int, int, parent: QModelIndex = QModelIndex()) -> QModelIndex
- inherits(self, str) bool¶
- insertColumn(self, int, parent: QModelIndex = QModelIndex()) bool¶
- ViewerModel.insertColumns(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
- insertRow(self, int, parent: QModelIndex = QModelIndex()) bool¶
- ViewerModel.insertRows(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
- installEventFilter(self, QObject)¶
- isSignalConnected(self, QMetaMethod) bool¶
- isWidgetType(self) bool¶
- isWindowType(self) bool¶
- itemData(self, QModelIndex) Dict[int, Any]¶
- killTimer(self, int)¶
- layoutAboutToBeChanged¶
layoutAboutToBeChanged(self, parents: Iterable[QPersistentModelIndex] = [], hint: QAbstractItemModel.LayoutChangeHint = QAbstractItemModel.NoLayoutChangeHint) [signal]
- layoutChanged¶
layoutChanged(self, parents: Iterable[QPersistentModelIndex] = [], hint: QAbstractItemModel.LayoutChangeHint = QAbstractItemModel.NoLayoutChangeHint) [signal]
- match(self, QModelIndex, int, Any, hits: int = 1, flags: Qt.MatchFlag = Qt.MatchFlags(Qt.MatchStartsWith | Qt.MatchWrap)) List[QModelIndex]¶
- metaObject(self) QMetaObject¶
- mimeData(self, Iterable[QModelIndex]) QMimeData¶
- mimeTypes(self) List[str]¶
- modelAboutToBeReset¶
modelAboutToBeReset(self) [signal]
- modelReset¶
modelReset(self) [signal]
- ViewerModel.moveColumn(self, QModelIndex, int, QModelIndex, int) -> bool
- ViewerModel.moveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- ViewerModel.moveRow(self, QModelIndex, int, QModelIndex, int) -> bool
- ViewerModel.moveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- moveToThread(self, QThread)¶
- objectName(self) str¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- parent(self) QObject¶
- persistentIndexList(self) List[QModelIndex]¶
- property(self, str) Any¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- receivers(self, PYQT_SIGNAL) int¶
- removeColumn(self, int, parent: QModelIndex = QModelIndex()) bool¶
- ViewerModel.removeColumns(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
- removeEventFilter(self, QObject)¶
- removeRow(self, int, parent: QModelIndex = QModelIndex()) bool¶
- ViewerModel.removeRows(self, int, int, parent: QModelIndex = QModelIndex()) -> bool
- removeStruct(row, column)¶
- reset()¶
PANEL-8852: Method added to prevent QtUpgradeError. This preserves backwards compatibility with QtCore.QAbstractTableModel.reset() but does not reset anything.
- resetInternalData(self)¶
- resize(row, column)¶
- resizeColumns(cols)¶
- resizeRows(row)¶
- revert(self)¶
- roleNames(self) Dict[int, QByteArray]¶
- rowCount(self, parent: QModelIndex = QModelIndex()) int¶
- rowsAboutToBeInserted¶
rowsAboutToBeInserted(self, QModelIndex, int, int) [signal]
- rowsAboutToBeMoved¶
rowsAboutToBeMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]
- rowsAboutToBeRemoved¶
rowsAboutToBeRemoved(self, QModelIndex, int, int) [signal]
- rowsInserted¶
rowsInserted(self, QModelIndex, int, int) [signal]
- rowsMoved¶
rowsMoved(self, QModelIndex, int, int, QModelIndex, int) [signal]
- rowsRemoved¶
rowsRemoved(self, QModelIndex, int, int) [signal]
- sender(self) QObject¶
- senderSignalIndex(self) int¶
- setData(self, QModelIndex, Any, role: int = Qt.EditRole) bool¶
- setHeaderData(self, int, Qt.Orientation, Any, role: int = Qt.EditRole) bool¶
- setItemData(self, QModelIndex, Dict[int, Any]) bool¶
- setObjectName(self, str)¶
- setParent(self, QObject)¶
- setProperty(self, str, Any) bool¶
- setStruct(index, struct)¶
Given the index, replace the structure with the new value. If the _unique flag is true and the new value already exists in table, it is not added.
- Returns
Return whether the new structure was successfully set at the specified index.
- Return type
bool
- setTable(view)¶
- ViewerModel.sibling(self, int, int, QModelIndex) -> QModelIndex
- signalsBlocked(self) bool¶
- sizeChanged¶
- sort(self, int, order: Qt.SortOrder = Qt.AscendingOrder)¶
- span(self, QModelIndex) QSize¶
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- structCount()¶
- submit(self) bool¶
- supportedDragActions(self) Qt.DropAction¶
- supportedDropActions(self) Qt.DropAction¶
- thread(self) QThread¶
- timerEvent(self, QTimerEvent)¶
- tr(str, disambiguation: str = None, n: int = - 1) str¶
- class schrodinger.ui.qt.structtable.StructureViewerDelegate(tableview, tablemodel, filename=None)¶
Bases:
schrodinger.ui.qt.structtable._GenericViewerDelegate- __init__(tableview, tablemodel, filename=None)¶
- generatePicture(index)¶
Overwrite this method. It should return a QPicture object for item index.
- clearCache()¶
Will clear all QPictures that are cached.
- paintCell(painter, option, index, pic)¶
Overwrite this method for custom cell drawing
- EditNextItem = 1¶
- EditPreviousItem = 2¶
- class EndEditHint(value)¶
Bases:
enum.EnumAn enumeration.
- NoHint = 0¶
- EditNextItem = 1¶
- EditPreviousItem = 2¶
- SubmitModelCache = 3¶
- RevertModelCache = 4¶
- NoHint = 0¶
- RevertModelCache = 4¶
- SubmitModelCache = 3¶
- autoResizeCells()¶
Auto-resizes the cells based on the number of columns in the table model and the width of the table.
- blockSignals(self, bool) bool¶
- childEvent(self, QChildEvent)¶
- children(self) List[QObject]¶
- closeEditor¶
closeEditor(self, QWidget, hint: QAbstractItemDelegate.EndEditHint = QAbstractItemDelegate.NoHint) [signal]
- commitData¶
commitData(self, QWidget) [signal]
- connectNotify(self, QMetaMethod)¶
- createEditor(self, QWidget, QStyleOptionViewItem, QModelIndex) QWidget¶
- customEvent(self, QEvent)¶
- deleteLater(self)¶
- destroyEditor(self, QWidget, QModelIndex)¶
- destroyed¶
destroyed(self, object: QObject = None) [signal]
- disconnect(QMetaObject.Connection) bool¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- drawBackground(self, QPainter, QStyleOptionViewItem, QModelIndex)¶
- drawCheck(self, QPainter, QStyleOptionViewItem, QRect, Qt.CheckState)¶
- drawDecoration(self, QPainter, QStyleOptionViewItem, QRect, QPixmap)¶
- drawDisplay(self, QPainter, QStyleOptionViewItem, QRect, str)¶
- drawFocus(self, QPainter, QStyleOptionViewItem, QRect)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray]¶
- editorEvent(self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex) bool¶
- event(self, QEvent) bool¶
- eventFilter(self, QObject, QEvent) bool¶
- findChild(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject¶
- findChild(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
- findChildren(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]¶
- findChildren(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- hasClipping(self) bool¶
- helpEvent(self, QHelpEvent, QAbstractItemView, QStyleOptionViewItem, QModelIndex) bool¶
- inherits(self, str) bool¶
- installEventFilter(self, QObject)¶
- isSignalConnected(self, QMetaMethod) bool¶
- isWidgetType(self) bool¶
- isWindowType(self) bool¶
- itemEditorFactory(self) QItemEditorFactory¶
- killTimer(self, int)¶
- metaObject(self) QMetaObject¶
- moveToThread(self, QThread)¶
- objectName(self) str¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- paint(painter, option, index)¶
This handles the logic behind painting/not-painting when the scrollbar is being dragged.
- paintWait()¶
Returns if we are drawing during while the scrollbar is dragged.
- parent(self) QObject¶
- property(self, str) Any¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- receivers(self, PYQT_SIGNAL) int¶
- removeEventFilter(self, QObject)¶
- sender(self) QObject¶
- senderSignalIndex(self) int¶
- setCellSize(width, height)¶
Sets the default cell size, and resizes appropriately.
- setClipping(self, bool)¶
- setEditorData(self, QWidget, QModelIndex)¶
- setItemEditorFactory(self, QItemEditorFactory)¶
- setModelData(self, QWidget, QAbstractItemModel, QModelIndex)¶
- setObjectName(self, str)¶
- setPaintWait(val)¶
Use this function to turn on/off delaying drawing of cells until the scrollbar is not being used. This may be useful in CPU intensive cell-drawing delegates.
- setParent(self, QObject)¶
- setProperty(self, str, Any) bool¶
- signalsBlocked(self) bool¶
- sizeHint(option, index)¶
Tells the default width,height of Cells
- sizeHintChanged¶
sizeHintChanged(self, QModelIndex) [signal]
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- thread(self) QThread¶
- timerEvent(self, QTimerEvent)¶
- tr(str, disambiguation: str = None, n: int = - 1) str¶
- updateEditorGeometry(self, QWidget, QStyleOptionViewItem, QModelIndex)¶
- class schrodinger.ui.qt.structtable.StructureReaderDelegate(tableview, tablemodel, filename=None)¶
Bases:
schrodinger.ui.qt.structtable.StructureViewerDelegate- __init__(tableview, tablemodel, filename=None)¶
- generatePicture(index)¶
Overwrite this method. It should return a QPicture object for item index.
- setFile(filename=None)¶
- recalculateTableSize()¶
- appendFile(filename)¶
- EditNextItem = 1¶
- EditPreviousItem = 2¶
- class EndEditHint(value)¶
Bases:
enum.EnumAn enumeration.
- NoHint = 0¶
- EditNextItem = 1¶
- EditPreviousItem = 2¶
- SubmitModelCache = 3¶
- RevertModelCache = 4¶
- NoHint = 0¶
- RevertModelCache = 4¶
- SubmitModelCache = 3¶
- autoResizeCells()¶
Auto-resizes the cells based on the number of columns in the table model and the width of the table.
- blockSignals(self, bool) bool¶
- childEvent(self, QChildEvent)¶
- children(self) List[QObject]¶
- clearCache()¶
Will clear all QPictures that are cached.
- closeEditor¶
closeEditor(self, QWidget, hint: QAbstractItemDelegate.EndEditHint = QAbstractItemDelegate.NoHint) [signal]
- commitData¶
commitData(self, QWidget) [signal]
- connectNotify(self, QMetaMethod)¶
- createEditor(self, QWidget, QStyleOptionViewItem, QModelIndex) QWidget¶
- customEvent(self, QEvent)¶
- deleteLater(self)¶
- destroyEditor(self, QWidget, QModelIndex)¶
- destroyed¶
destroyed(self, object: QObject = None) [signal]
- disconnect(QMetaObject.Connection) bool¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- drawBackground(self, QPainter, QStyleOptionViewItem, QModelIndex)¶
- drawCheck(self, QPainter, QStyleOptionViewItem, QRect, Qt.CheckState)¶
- drawDecoration(self, QPainter, QStyleOptionViewItem, QRect, QPixmap)¶
- drawDisplay(self, QPainter, QStyleOptionViewItem, QRect, str)¶
- drawFocus(self, QPainter, QStyleOptionViewItem, QRect)¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray]¶
- editorEvent(self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex) bool¶
- event(self, QEvent) bool¶
- eventFilter(self, QObject, QEvent) bool¶
- findChild(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject¶
- findChild(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObject
- findChildren(self, type, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]¶
- findChildren(self, Tuple, name: str = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) List[QObject]
- hasClipping(self) bool¶
- helpEvent(self, QHelpEvent, QAbstractItemView, QStyleOptionViewItem, QModelIndex) bool¶
- inherits(self, str) bool¶
- installEventFilter(self, QObject)¶
- isSignalConnected(self, QMetaMethod) bool¶
- isWidgetType(self) bool¶
- isWindowType(self) bool¶
- itemEditorFactory(self) QItemEditorFactory¶
- killTimer(self, int)¶
- metaObject(self) QMetaObject¶
- moveToThread(self, QThread)¶
- objectName(self) str¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- paint(painter, option, index)¶
This handles the logic behind painting/not-painting when the scrollbar is being dragged.
- paintCell(painter, option, index, pic)¶
Overwrite this method for custom cell drawing
- paintWait()¶
Returns if we are drawing during while the scrollbar is dragged.
- parent(self) QObject¶
- property(self, str) Any¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- receivers(self, PYQT_SIGNAL) int¶
- removeEventFilter(self, QObject)¶
- sender(self) QObject¶
- senderSignalIndex(self) int¶
- setCellSize(width, height)¶
Sets the default cell size, and resizes appropriately.
- setClipping(self, bool)¶
- setEditorData(self, QWidget, QModelIndex)¶
- setItemEditorFactory(self, QItemEditorFactory)¶
- setModelData(self, QWidget, QAbstractItemModel, QModelIndex)¶
- setObjectName(self, str)¶
- setPaintWait(val)¶
Use this function to turn on/off delaying drawing of cells until the scrollbar is not being used. This may be useful in CPU intensive cell-drawing delegates.
- setParent(self, QObject)¶
- setProperty(self, str, Any) bool¶
- signalsBlocked(self) bool¶
- sizeHint(option, index)¶
Tells the default width,height of Cells
- sizeHintChanged¶
sizeHintChanged(self, QModelIndex) [signal]
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int¶
- staticMetaObject = <PyQt6.QtCore.QMetaObject object>¶
- thread(self) QThread¶
- timerEvent(self, QTimerEvent)¶
- tr(str, disambiguation: str = None, n: int = - 1) str¶
- updateEditorGeometry(self, QWidget, QStyleOptionViewItem, QModelIndex)¶