schrodinger.ui.qt.propertyselector module¶
This module provides a PropertySelector GUI class for viewing and selecting properties. Pass the widget a list of properties (via the constructor or the setProperties() method), and then extract properties selected by the user with the getSelected() method.
PropertySelector will display properties without the type (e.g., i_,
s_) or owner/family (e.g., mmod_, sd_) tags, for readability. The
list of properties displayed can be limited to a single family.
The listbox component can be set to multiple or single selection with the boolean “multi” initialization option.
Copyright Schrodinger, LLC. All rights reserved.
-
class
schrodinger.ui.qt.propertyselector.PropertySelector(parent, proplist=None, multi=False, presort=True, show_family_menu=True, show_family_name=True, show_alpha_toggle=False, show_filter_field=False, show_aux_listbox=False, move_to_aux=False)¶ Bases:
objectClass for selecting properties, with features to organize by family/owner, filter by name, and/or sort items in the list. The PropertySelector displays a list of property user names, specified as structure.PropertyName objects.
Duplicate user names are distinguished by creating a PropertyName.user_name attribute to with a unique numerical id suffix. e.g. foo, foo-1, foo-2. The name checking is done once, at __init__.
Variables: - propfamiles – Family name keys for a list of structure.PropertyName instances in that group.
- displayed_aux_proplist (list) – List of PropertyNames currently displayed in the auxilary listbox, in the order they appear in the list. This is typically a subset of self.proplist.
- move_to_aux (bool) – If True, items will be moved from main table to auxilary table when they are selected. If false, they will be duplicated in both tables if selected (default False)
-
__init__(parent, proplist=None, multi=False, presort=True, show_family_menu=True, show_family_name=True, show_alpha_toggle=False, show_filter_field=False, show_aux_listbox=False, move_to_aux=False)¶ PropertySelector requires <parent> argument, which should be a Qt Widget into which this frame should be added.
Parameters: - proplist (list(str) or list(structure.PropertyName)) – The order of data name items in the list is the default order of items in the list box.
- multi (bool) – True allows selecting multiple properties. Default is False, single item selection.
- show_family_menu (bool) – True add property family menu to control visible list items. Default is True.
- show_family_name (bool) – True displays the family/owner in parentheses after each name.
- show_alpha_toggle (bool) – True displays the alphabetize checkbox toggle.
- show_filter_field (bool) – True displays the string filter controls.
- show_aux_listbox (bool) – True displays the auxilary listbox, add and remove buttons, and decrement/increment buttons. self.getSelected() returns all the items in the auxilary list box, in the order they appear.
- presort (bool) – True orders the properties alphabetically by PropertyName.userName() values.
- move_to_aux (bool) – If True, items will be moved from main table to auxilary table when they are selected. If false, they will be duplicated in both tables if selected.
-
setupUi(Form)¶
-
updateButtonStates()¶ Enable or disable buttons as needed. Called when selection in the tables changes.
-
sortAlphabetically(proplist)¶
-
sortByInitialOrder(proplist)¶
-
alphabetizeNames(is_toggled)¶ Alternate order the displayed list items, either alphabetically or in the native order depending on the value of self.alpha_toggle.
Parameters: is_toggled (bool) – whether to alphabetize the property names
-
checkUserNames()¶ Assigns PropertyName.user_name attributes, for all members in self.proplist. The user_names are unique within the PropertySelector instance.
The user_name strings are typically just the PropertyName.userName(), but may be modified with a numerical suffix to make them unique, or decorated with the family name (which does not garuntee uniqeness, but may make the items easier for the end user to visually group).
-
filteringChanged(ignored)¶ Called when value of the family pull-down menu is changed.
-
filterProperties(props)¶ Limit the specified list items to those items that match the self.filter_field filter regex and family option menu.
-
createFamilies()¶ Create a dictionary of families. PropertyName.family keys for a list of PropertyNames in that family.
-
setProperties(proplist, selected_indexes=None)¶ Set the listbox items to the structure.PropertyName.user_name attributes for the PropertyName instances in proplist.
Parameters: - proplist (list of str (data names) or
structure.PropertyName.) – A list of properties to show. - selected_indexes (list of int) – List of indexes of <proplist> that should be initially selected.
- proplist (list of str (data names) or
-
displayProperties(display_list, selected_list=None)¶ Adjust the display state and selection states to specified lists of PropertyName objects. Use only when selection or display state changes. Use setProperties() to use different properties.
- display_list (list)
- A list of PropertyName objects to display.
- selected_list (list)
- A list of PropertyName objects to select.
-
getSelected()¶ Return a list of selected PropertyName objects.
-
selectAll()¶ Select all properties in the listbox.
-
deselectAll()¶ Clear property selection
-
setEnabled(enabled)¶ Enable/disable the PropertySelector widget
-
getListboxSelection()¶
-
getAuxListboxSelection()¶
-
moveAuxSelectedDown()¶ Reorders the displayed list items in self.aux_listbox such that the selected item moves down one rung in the listbox.
-
moveAuxSelectedUp()¶ Reorders the displayed list items in self.aux_listbox such that the selected item moves up one rung in the listbox.
-
addToAuxListbox()¶ Adds items selected in self.listbox to self.aux_listbox.
-
delFromAuxListbox()¶ Removes selected item from self.aux_listbox.
-
showAuxProperties(proplist, selected_indexes=None)¶ Display the auxilary listbox items to the structure.PropertyName.user_name attributes for the PropertyName instances in proplist.
- proplist (list)
- List of structure.PropertyName instances.
- selected_indexes (list)
- List of indexes of <proplist> that should be selected.
-
class
schrodinger.ui.qt.propertyselector.PropertySelectorMenu(optionmenu, command=None, proplist=None)¶ Bases:
objectPull-down menu style property selected widget. Used by VSW and Generate Phase DB GUIs
-
__init__(optionmenu, command=None, proplist=None)¶ Initialize self. See help(type(self)) for accurate signature.
-
getSelected()¶ Return PropertyName object for the selected property, or None.
-
select(property)¶ Select the specified property. <property> must be a data name string or a PropertyName object.
-
setProperties(proplist)¶ Change the list of properties. ‘proplist’ must be a list of PropertyName objects (from the ‘structure.py’ module) or data names
-
clear()¶
-
-
class
schrodinger.ui.qt.propertyselector.PropertySelectorDialog(parent, type_filter=None, allow_empty=False, title='Choose Property', accept_text='Select', **kwargs)¶ Bases:
PyQt5.QtWidgets.QDialogA popup window that allows the user to grab a property. Use chooseFromPT() or chooseFromList() method to execute/show the dialog.
-
__init__(parent, type_filter=None, allow_empty=False, title='Choose Property', accept_text='Select', **kwargs)¶ Create a dialog that allows the user to choose property(ies).
Parameters: - parent (QWidget) – the parent widget for this dialog
- type_filter (list) – List of property types (first character of property name) to accept. Should be one or more of i, r, b and s.
- allow_empty – Whether to allow the user to accept the dialog when no property is selected. By default a warning dialog will appear in such case.
- title (str) – Title to use for the dialog window
All keyword arguments supported by PropertySelector class can also be used. For example, set “multi=True” to allow selection of more than one property.
-
accept(self)¶
-
chooseFromPT()¶ Ask the user to choose from the available Project Table properties.
- :return list of PropertyName objects for properties that were selected.
- Returns None if the user cancelled. NOTE: If allow_empty is True, the returned list may be empty.
-
chooseFromList(proplist, selected_indexes=None)¶ Ask the user to choose from the given list of properties.
Parameters: - proplist (list of str (data names) or
structure.PropertyName.) – A list of properties to show. - selected_indexes (list of int) – List of indexes of <proplist> that should be initially selected, if desired.
- :return list of PropertyName objects for properties that were selected.
- Returns None if the user cancelled. NOTE: If allow_empty is True, the returned list may be empty.
- proplist (list of str (data names) or
-
Accepted= 1¶
-
class
DialogCode¶ Bases:
int-
__init__= <method-wrapper '__init__' of sip.enumtype object at 0x3be3928>¶
-
-
DrawChildren= 2¶
-
DrawWindowBackground= 1¶
-
IgnoreMask= 4¶
-
class
PaintDeviceMetric¶ Bases:
int-
__init__= <method-wrapper '__init__' of sip.enumtype object at 0x35979f8>¶
-
-
PdmDepth= 6¶
-
PdmDevicePixelRatio= 11¶
-
PdmDevicePixelRatioScaled= 12¶
-
PdmDpiX= 7¶
-
PdmDpiY= 8¶
-
PdmHeight= 2¶
-
PdmHeightMM= 4¶
-
PdmNumColors= 5¶
-
PdmPhysicalDpiX= 9¶
-
PdmPhysicalDpiY= 10¶
-
PdmWidth= 1¶
-
PdmWidthMM= 3¶
-
Rejected= 0¶
-
class
RenderFlag¶ Bases:
int-
__init__= <method-wrapper '__init__' of sip.enumtype object at 0x3c52688>¶
-
-
class
RenderFlags¶ Bases:
sip.simplewrapperQWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)
-
__init__¶ Initialize self. See help(type(self)) for accurate signature.
-
-
acceptDrops(self) → bool¶
-
accepted¶ accepted(self) [signal]
-
accessibleDescription(self) → str¶
-
accessibleName(self) → str¶
-
actionEvent(self, QActionEvent)¶
-
actions(self) → List[QAction]¶
-
activateWindow(self)¶
-
addAction(self, QAction)¶
-
addActions(self, Iterable[QAction])¶
-
adjustSize(self)¶
-
autoFillBackground(self) → bool¶
-
backgroundRole(self) → QPalette.ColorRole¶
-
baseSize(self) → QSize¶
-
blockSignals(self, bool) → bool¶
-
changeEvent(self, QEvent)¶
-
childAt(self, QPoint) → QWidget¶ childAt(self, int, int) -> QWidget
-
childEvent(self, QChildEvent)¶
-
children(self) → List[QObject]¶
-
childrenRect(self) → QRect¶
-
childrenRegion(self) → QRegion¶
-
clearFocus(self)¶
-
clearMask(self)¶
-
close(self) → bool¶
-
closeEvent(self, QCloseEvent)¶
-
colorCount(self) → int¶
-
connectNotify(self, QMetaMethod)¶
-
contentsMargins(self) → QMargins¶
-
contentsRect(self) → QRect¶
-
contextMenuEvent(self, QContextMenuEvent)¶
-
contextMenuPolicy(self) → Qt.ContextMenuPolicy¶
-
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
-
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget¶
-
cursor(self) → QCursor¶
-
customContextMenuRequested¶ customContextMenuRequested(self, QPoint) [signal]
-
customEvent(self, QEvent)¶
-
deleteLater(self)¶
-
depth(self) → int¶
-
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
-
destroyed¶ destroyed(self, object: QObject = None) [signal]
-
devType(self) → int¶
-
devicePixelRatio(self) → int¶
-
devicePixelRatioF(self) → float¶
-
devicePixelRatioFScale() → float¶
-
disconnect(self)¶
-
disconnectNotify(self, QMetaMethod)¶
-
done(self, int)¶
-
dragEnterEvent(self, QDragEnterEvent)¶
-
dragLeaveEvent(self, QDragLeaveEvent)¶
-
dragMoveEvent(self, QDragMoveEvent)¶
-
dropEvent(self, QDropEvent)¶
-
dumpObjectInfo(self)¶
-
dumpObjectTree(self)¶
-
dynamicPropertyNames(self) → List[QByteArray]¶
-
effectiveWinId(self) → sip.voidptr¶
-
ensurePolished(self)¶
-
enterEvent(self, QEvent)¶
-
event(self, QEvent) → bool¶
-
eventFilter(self, QObject, QEvent) → bool¶
-
exec(self) → int¶
-
exec_(self) → int¶
-
find(sip.voidptr) → QWidget¶
-
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject¶ findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
-
findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]¶ findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
-
finished¶ finished(self, int) [signal]
-
focusInEvent(self, QFocusEvent)¶
-
focusNextChild(self) → bool¶
-
focusNextPrevChild(self, bool) → bool¶
-
focusOutEvent(self, QFocusEvent)¶
-
focusPolicy(self) → Qt.FocusPolicy¶
-
focusPreviousChild(self) → bool¶
-
focusProxy(self) → QWidget¶
-
focusWidget(self) → QWidget¶
-
font(self) → QFont¶
-
fontInfo(self) → QFontInfo¶
-
fontMetrics(self) → QFontMetrics¶
-
foregroundRole(self) → QPalette.ColorRole¶
-
frameGeometry(self) → QRect¶
-
frameSize(self) → QSize¶
-
geometry(self) → QRect¶
-
getContentsMargins(self) → Tuple[int, int, int, int]¶
-
grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) → QPixmap¶
-
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())¶
-
grabKeyboard(self)¶
-
grabMouse(self)¶ grabMouse(self, Union[QCursor, Qt.CursorShape])
-
grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int¶
-
graphicsEffect(self) → QGraphicsEffect¶
-
graphicsProxyWidget(self) → QGraphicsProxyWidget¶
-
hasFocus(self) → bool¶
-
hasHeightForWidth(self) → bool¶
-
hasMouseTracking(self) → bool¶
-
hasTabletTracking(self) → bool¶
-
height(self) → int¶
-
heightForWidth(self, int) → int¶
-
heightMM(self) → int¶
-
hide(self)¶
-
hideEvent(self, QHideEvent)¶
-
inherits(self, str) → bool¶
-
initPainter(self, QPainter)¶
-
inputMethodEvent(self, QInputMethodEvent)¶
-
inputMethodHints(self) → Qt.InputMethodHints¶
-
inputMethodQuery(self, Qt.InputMethodQuery) → Any¶
-
insertAction(self, QAction, QAction)¶
-
insertActions(self, QAction, Iterable[QAction])¶
-
installEventFilter(self, QObject)¶
-
isActiveWindow(self) → bool¶
-
isAncestorOf(self, QWidget) → bool¶
-
isEnabled(self) → bool¶
-
isEnabledTo(self, QWidget) → bool¶
-
isFullScreen(self) → bool¶
-
isHidden(self) → bool¶
-
isLeftToRight(self) → bool¶
-
isMaximized(self) → bool¶
-
isMinimized(self) → bool¶
-
isModal(self) → bool¶
-
isRightToLeft(self) → bool¶
-
isSignalConnected(self, QMetaMethod) → bool¶
-
isSizeGripEnabled(self) → bool¶
-
isVisible(self) → bool¶
-
isVisibleTo(self, QWidget) → bool¶
-
isWidgetType(self) → bool¶
-
isWindow(self) → bool¶
-
isWindowModified(self) → bool¶
-
isWindowType(self) → bool¶
-
keyPressEvent(self, QKeyEvent)¶
-
keyReleaseEvent(self, QKeyEvent)¶
-
keyboardGrabber() → QWidget¶
-
killTimer(self, int)¶
-
layout(self) → QLayout¶
-
layoutDirection(self) → Qt.LayoutDirection¶
-
leaveEvent(self, QEvent)¶
-
locale(self) → QLocale¶
-
logicalDpiX(self) → int¶
-
logicalDpiY(self) → int¶
-
lower(self)¶
-
mapFrom(self, QWidget, QPoint) → QPoint¶
-
mapFromGlobal(self, QPoint) → QPoint¶
-
mapFromParent(self, QPoint) → QPoint¶
-
mapTo(self, QWidget, QPoint) → QPoint¶
-
mapToGlobal(self, QPoint) → QPoint¶
-
mapToParent(self, QPoint) → QPoint¶
-
mask(self) → QRegion¶
-
maximumHeight(self) → int¶
-
maximumSize(self) → QSize¶
-
maximumWidth(self) → int¶
-
metaObject(self) → QMetaObject¶
-
metric(self, QPaintDevice.PaintDeviceMetric) → int¶
-
minimumHeight(self) → int¶
-
minimumSize(self) → QSize¶
-
minimumSizeHint(self) → QSize¶
-
minimumWidth(self) → int¶
-
mouseDoubleClickEvent(self, QMouseEvent)¶
-
mouseGrabber() → QWidget¶
-
mouseMoveEvent(self, QMouseEvent)¶
-
mousePressEvent(self, QMouseEvent)¶
-
mouseReleaseEvent(self, QMouseEvent)¶
-
move(self, QPoint)¶ move(self, int, int)
-
moveEvent(self, QMoveEvent)¶
-
moveToThread(self, QThread)¶
-
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]¶
-
nativeParentWidget(self) → QWidget¶
-
nextInFocusChain(self) → QWidget¶
-
normalGeometry(self) → QRect¶
-
objectName(self) → str¶
-
objectNameChanged¶ objectNameChanged(self, str) [signal]
-
open(self)¶
-
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])¶
-
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])¶
-
paintEngine(self) → QPaintEngine¶
-
paintEvent(self, QPaintEvent)¶
-
paintingActive(self) → bool¶
-
palette(self) → QPalette¶
-
parent(self) → QObject¶
-
parentWidget(self) → QWidget¶
-
physicalDpiX(self) → int¶
-
physicalDpiY(self) → int¶
-
pos(self) → QPoint¶
-
previousInFocusChain(self) → QWidget¶
-
property(self, str) → Any¶
-
pyqtConfigure(...)¶ Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
-
raise_(self)¶
-
receivers(self, PYQT_SIGNAL) → int¶
-
rect(self) → QRect¶
-
reject(self)¶
-
rejected¶ rejected(self) [signal]
-
releaseKeyboard(self)¶
-
releaseMouse(self)¶
-
releaseShortcut(self, int)¶
-
removeAction(self, QAction)¶
-
removeEventFilter(self, QObject)¶
-
render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))¶ render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
-
repaint(self)¶ repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)
-
resize(self, QSize)¶ resize(self, int, int)
-
resizeEvent(self, QResizeEvent)¶
-
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool¶
-
result(self) → int¶
-
saveGeometry(self) → QByteArray¶
-
scroll(self, int, int)¶ scroll(self, int, int, QRect)
-
sender(self) → QObject¶
-
senderSignalIndex(self) → int¶
-
setAcceptDrops(self, bool)¶
-
setAccessibleDescription(self, str)¶
-
setAccessibleName(self, str)¶
-
setAttribute(self, Qt.WidgetAttribute, on: bool = True)¶
-
setAutoFillBackground(self, bool)¶
-
setBackgroundRole(self, QPalette.ColorRole)¶
-
setBaseSize(self, int, int)¶ setBaseSize(self, QSize)
-
setContentsMargins(self, int, int, int, int)¶ setContentsMargins(self, QMargins)
-
setContextMenuPolicy(self, Qt.ContextMenuPolicy)¶
-
setCursor(self, Union[QCursor, Qt.CursorShape])¶
-
setDisabled(self, bool)¶
-
setEnabled(self, bool)¶
-
setFixedHeight(self, int)¶
-
setFixedSize(self, QSize)¶ setFixedSize(self, int, int)
-
setFixedWidth(self, int)¶
-
setFocus(self)¶ setFocus(self, Qt.FocusReason)
-
setFocusPolicy(self, Qt.FocusPolicy)¶
-
setFocusProxy(self, QWidget)¶
-
setFont(self, QFont)¶
-
setForegroundRole(self, QPalette.ColorRole)¶
-
setGeometry(self, QRect)¶ setGeometry(self, int, int, int, int)
-
setGraphicsEffect(self, QGraphicsEffect)¶
-
setHidden(self, bool)¶
-
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])¶
-
setLayout(self, QLayout)¶
-
setLayoutDirection(self, Qt.LayoutDirection)¶
-
setLocale(self, QLocale)¶
-
setMask(self, QBitmap)¶ setMask(self, QRegion)
-
setMaximumHeight(self, int)¶
-
setMaximumSize(self, int, int)¶ setMaximumSize(self, QSize)
-
setMaximumWidth(self, int)¶
-
setMinimumHeight(self, int)¶
-
setMinimumSize(self, int, int)¶ setMinimumSize(self, QSize)
-
setMinimumWidth(self, int)¶
-
setModal(self, bool)¶
-
setMouseTracking(self, bool)¶
-
setObjectName(self, str)¶
-
setPalette(self, QPalette)¶
-
setParent(self, QWidget)¶ setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
-
setProperty(self, str, Any) → bool¶
-
setResult(self, int)¶
-
setShortcutAutoRepeat(self, int, enabled: bool = True)¶
-
setShortcutEnabled(self, int, enabled: bool = True)¶
-
setSizeGripEnabled(self, bool)¶
-
setSizeIncrement(self, int, int)¶ setSizeIncrement(self, QSize)
-
setSizePolicy(self, QSizePolicy)¶ setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
-
setStatusTip(self, str)¶
-
setStyle(self, QStyle)¶
-
setStyleSheet(self, str)¶
-
setTabOrder(QWidget, QWidget)¶
-
setTabletTracking(self, bool)¶
-
setToolTip(self, str)¶
-
setToolTipDuration(self, int)¶
-
setUpdatesEnabled(self, bool)¶
-
setVisible(self, bool)¶
-
setWhatsThis(self, str)¶
-
setWindowFilePath(self, str)¶
-
setWindowFlag(self, Qt.WindowType, on: bool = True)¶
-
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])¶
-
setWindowIcon(self, QIcon)¶
-
setWindowIconText(self, str)¶
-
setWindowModality(self, Qt.WindowModality)¶
-
setWindowModified(self, bool)¶
-
setWindowOpacity(self, float)¶
-
setWindowRole(self, str)¶
-
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])¶
-
setWindowTitle(self, str)¶
-
show(self)¶
-
showEvent(self, QShowEvent)¶
-
showFullScreen(self)¶
-
showMaximized(self)¶
-
showMinimized(self)¶
-
showNormal(self)¶
-
signalsBlocked(self) → bool¶
-
size(self) → QSize¶
-
sizeHint(self) → QSize¶
-
sizeIncrement(self) → QSize¶
-
sizePolicy(self) → QSizePolicy¶
-
stackUnder(self, QWidget)¶
-
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int¶
-
staticMetaObject= <PyQt5.QtCore.QMetaObject object>¶
-
statusTip(self) → str¶
-
style(self) → QStyle¶
-
styleSheet(self) → str¶
-
tabletEvent(self, QTabletEvent)¶
-
testAttribute(self, Qt.WidgetAttribute) → bool¶
-
thread(self) → QThread¶
-
timerEvent(self, QTimerEvent)¶
-
toolTip(self) → str¶
-
toolTipDuration(self) → int¶
-
tr(self, str, disambiguation: str = None, n: int = -1) → str¶
-
underMouse(self) → bool¶
-
ungrabGesture(self, Qt.GestureType)¶
-
unsetCursor(self)¶
-
unsetLayoutDirection(self)¶
-
unsetLocale(self)¶
-
update(self)¶ update(self, QRect) update(self, QRegion) update(self, int, int, int, int)
-
updateGeometry(self)¶
-
updateMicroFocus(self)¶
-
updatesEnabled(self) → bool¶
-
visibleRegion(self) → QRegion¶
-
whatsThis(self) → str¶
-
wheelEvent(self, QWheelEvent)¶
-
width(self) → int¶
-
widthMM(self) → int¶
-
winId(self) → sip.voidptr¶
-
window(self) → QWidget¶
-
windowFilePath(self) → str¶
-
windowFlags(self) → Qt.WindowFlags¶
-
windowHandle(self) → QWindow¶
-
windowIcon(self) → QIcon¶
-
windowIconChanged¶ windowIconChanged(self, QIcon) [signal]
-
windowIconText(self) → str¶
-
windowIconTextChanged¶ windowIconTextChanged(self, str) [signal]
-
windowModality(self) → Qt.WindowModality¶
-
windowOpacity(self) → float¶
-
windowRole(self) → str¶
-
windowState(self) → Qt.WindowStates¶
-
windowTitle(self) → str¶
-
windowTitleChanged¶ windowTitleChanged(self, str) [signal]
-
windowType(self) → Qt.WindowType¶
-
x(self) → int¶
-
y(self) → int¶
-
-
class
schrodinger.ui.qt.propertyselector.MyWindow(*args)¶ Bases:
PyQt5.QtWidgets.QWidget-
__init__(*args)¶ Initialize self. See help(type(self)) for accurate signature.
-
propsDialog()¶
-
DrawChildren= 2¶
-
DrawWindowBackground= 1¶
-
IgnoreMask= 4¶
-
class
PaintDeviceMetric¶ Bases:
int-
__init__= <method-wrapper '__init__' of sip.enumtype object at 0x35979f8>¶
-
-
PdmDepth= 6¶
-
PdmDevicePixelRatio= 11¶
-
PdmDevicePixelRatioScaled= 12¶
-
PdmDpiX= 7¶
-
PdmDpiY= 8¶
-
PdmHeight= 2¶
-
PdmHeightMM= 4¶
-
PdmNumColors= 5¶
-
PdmPhysicalDpiX= 9¶
-
PdmPhysicalDpiY= 10¶
-
PdmWidth= 1¶
-
PdmWidthMM= 3¶
-
class
RenderFlag¶ Bases:
int-
__init__= <method-wrapper '__init__' of sip.enumtype object at 0x3c52688>¶
-
-
class
RenderFlags¶ Bases:
sip.simplewrapperQWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)
-
__init__¶ Initialize self. See help(type(self)) for accurate signature.
-
-
acceptDrops(self) → bool¶
-
accessibleDescription(self) → str¶
-
accessibleName(self) → str¶
-
actionEvent(self, QActionEvent)¶
-
actions(self) → List[QAction]¶
-
activateWindow(self)¶
-
addAction(self, QAction)¶
-
addActions(self, Iterable[QAction])¶
-
adjustSize(self)¶
-
autoFillBackground(self) → bool¶
-
backgroundRole(self) → QPalette.ColorRole¶
-
baseSize(self) → QSize¶
-
blockSignals(self, bool) → bool¶
-
changeEvent(self, QEvent)¶
-
childAt(self, QPoint) → QWidget¶ childAt(self, int, int) -> QWidget
-
childEvent(self, QChildEvent)¶
-
children(self) → List[QObject]¶
-
childrenRect(self) → QRect¶
-
childrenRegion(self) → QRegion¶
-
clearFocus(self)¶
-
clearMask(self)¶
-
close(self) → bool¶
-
closeEvent(self, QCloseEvent)¶
-
colorCount(self) → int¶
-
connectNotify(self, QMetaMethod)¶
-
contentsMargins(self) → QMargins¶
-
contentsRect(self) → QRect¶
-
contextMenuEvent(self, QContextMenuEvent)¶
-
contextMenuPolicy(self) → Qt.ContextMenuPolicy¶
-
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
-
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget¶
-
cursor(self) → QCursor¶
-
customContextMenuRequested¶ customContextMenuRequested(self, QPoint) [signal]
-
customEvent(self, QEvent)¶
-
deleteLater(self)¶
-
depth(self) → int¶
-
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
-
destroyed¶ destroyed(self, object: QObject = None) [signal]
-
devType(self) → int¶
-
devicePixelRatio(self) → int¶
-
devicePixelRatioF(self) → float¶
-
devicePixelRatioFScale() → float¶
-
disconnect(self)¶
-
disconnectNotify(self, QMetaMethod)¶
-
dragEnterEvent(self, QDragEnterEvent)¶
-
dragLeaveEvent(self, QDragLeaveEvent)¶
-
dragMoveEvent(self, QDragMoveEvent)¶
-
dropEvent(self, QDropEvent)¶
-
dumpObjectInfo(self)¶
-
dumpObjectTree(self)¶
-
dynamicPropertyNames(self) → List[QByteArray]¶
-
effectiveWinId(self) → sip.voidptr¶
-
ensurePolished(self)¶
-
enterEvent(self, QEvent)¶
-
event(self, QEvent) → bool¶
-
eventFilter(self, QObject, QEvent) → bool¶
-
find(sip.voidptr) → QWidget¶
-
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject¶ findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
-
findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]¶ findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
-
focusInEvent(self, QFocusEvent)¶
-
focusNextChild(self) → bool¶
-
focusNextPrevChild(self, bool) → bool¶
-
focusOutEvent(self, QFocusEvent)¶
-
focusPolicy(self) → Qt.FocusPolicy¶
-
focusPreviousChild(self) → bool¶
-
focusProxy(self) → QWidget¶
-
focusWidget(self) → QWidget¶
-
font(self) → QFont¶
-
fontInfo(self) → QFontInfo¶
-
fontMetrics(self) → QFontMetrics¶
-
foregroundRole(self) → QPalette.ColorRole¶
-
frameGeometry(self) → QRect¶
-
frameSize(self) → QSize¶
-
geometry(self) → QRect¶
-
getContentsMargins(self) → Tuple[int, int, int, int]¶
-
grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) → QPixmap¶
-
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())¶
-
grabKeyboard(self)¶
-
grabMouse(self)¶ grabMouse(self, Union[QCursor, Qt.CursorShape])
-
grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int¶
-
graphicsEffect(self) → QGraphicsEffect¶
-
graphicsProxyWidget(self) → QGraphicsProxyWidget¶
-
hasFocus(self) → bool¶
-
hasHeightForWidth(self) → bool¶
-
hasMouseTracking(self) → bool¶
-
hasTabletTracking(self) → bool¶
-
height(self) → int¶
-
heightForWidth(self, int) → int¶
-
heightMM(self) → int¶
-
hide(self)¶
-
hideEvent(self, QHideEvent)¶
-
inherits(self, str) → bool¶
-
initPainter(self, QPainter)¶
-
inputMethodEvent(self, QInputMethodEvent)¶
-
inputMethodHints(self) → Qt.InputMethodHints¶
-
inputMethodQuery(self, Qt.InputMethodQuery) → Any¶
-
insertAction(self, QAction, QAction)¶
-
insertActions(self, QAction, Iterable[QAction])¶
-
installEventFilter(self, QObject)¶
-
isActiveWindow(self) → bool¶
-
isAncestorOf(self, QWidget) → bool¶
-
isEnabled(self) → bool¶
-
isEnabledTo(self, QWidget) → bool¶
-
isFullScreen(self) → bool¶
-
isHidden(self) → bool¶
-
isLeftToRight(self) → bool¶
-
isMaximized(self) → bool¶
-
isMinimized(self) → bool¶
-
isModal(self) → bool¶
-
isRightToLeft(self) → bool¶
-
isSignalConnected(self, QMetaMethod) → bool¶
-
isVisible(self) → bool¶
-
isVisibleTo(self, QWidget) → bool¶
-
isWidgetType(self) → bool¶
-
isWindow(self) → bool¶
-
isWindowModified(self) → bool¶
-
isWindowType(self) → bool¶
-
keyPressEvent(self, QKeyEvent)¶
-
keyReleaseEvent(self, QKeyEvent)¶
-
keyboardGrabber() → QWidget¶
-
killTimer(self, int)¶
-
layout(self) → QLayout¶
-
layoutDirection(self) → Qt.LayoutDirection¶
-
leaveEvent(self, QEvent)¶
-
locale(self) → QLocale¶
-
logicalDpiX(self) → int¶
-
logicalDpiY(self) → int¶
-
lower(self)¶
-
mapFrom(self, QWidget, QPoint) → QPoint¶
-
mapFromGlobal(self, QPoint) → QPoint¶
-
mapFromParent(self, QPoint) → QPoint¶
-
mapTo(self, QWidget, QPoint) → QPoint¶
-
mapToGlobal(self, QPoint) → QPoint¶
-
mapToParent(self, QPoint) → QPoint¶
-
mask(self) → QRegion¶
-
maximumHeight(self) → int¶
-
maximumSize(self) → QSize¶
-
maximumWidth(self) → int¶
-
metaObject(self) → QMetaObject¶
-
metric(self, QPaintDevice.PaintDeviceMetric) → int¶
-
minimumHeight(self) → int¶
-
minimumSize(self) → QSize¶
-
minimumSizeHint(self) → QSize¶
-
minimumWidth(self) → int¶
-
mouseDoubleClickEvent(self, QMouseEvent)¶
-
mouseGrabber() → QWidget¶
-
mouseMoveEvent(self, QMouseEvent)¶
-
mousePressEvent(self, QMouseEvent)¶
-
mouseReleaseEvent(self, QMouseEvent)¶
-
move(self, QPoint)¶ move(self, int, int)
-
moveEvent(self, QMoveEvent)¶
-
moveToThread(self, QThread)¶
-
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]¶
-
nativeParentWidget(self) → QWidget¶
-
nextInFocusChain(self) → QWidget¶
-
normalGeometry(self) → QRect¶
-
objectName(self) → str¶
-
objectNameChanged¶ objectNameChanged(self, str) [signal]
-
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])¶
-
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])¶
-
paintEngine(self) → QPaintEngine¶
-
paintEvent(self, QPaintEvent)¶
-
paintingActive(self) → bool¶
-
palette(self) → QPalette¶
-
parent(self) → QObject¶
-
parentWidget(self) → QWidget¶
-
physicalDpiX(self) → int¶
-
physicalDpiY(self) → int¶
-
pos(self) → QPoint¶
-
previousInFocusChain(self) → QWidget¶
-
property(self, str) → Any¶
-
pyqtConfigure(...)¶ Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
-
raise_(self)¶
-
receivers(self, PYQT_SIGNAL) → int¶
-
rect(self) → QRect¶
-
releaseKeyboard(self)¶
-
releaseMouse(self)¶
-
releaseShortcut(self, int)¶
-
removeAction(self, QAction)¶
-
removeEventFilter(self, QObject)¶
-
render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))¶ render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
-
repaint(self)¶ repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)
-
resize(self, QSize)¶ resize(self, int, int)
-
resizeEvent(self, QResizeEvent)¶
-
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool¶
-
saveGeometry(self) → QByteArray¶
-
scroll(self, int, int)¶ scroll(self, int, int, QRect)
-
sender(self) → QObject¶
-
senderSignalIndex(self) → int¶
-
setAcceptDrops(self, bool)¶
-
setAccessibleDescription(self, str)¶
-
setAccessibleName(self, str)¶
-
setAttribute(self, Qt.WidgetAttribute, on: bool = True)¶
-
setAutoFillBackground(self, bool)¶
-
setBackgroundRole(self, QPalette.ColorRole)¶
-
setBaseSize(self, int, int)¶ setBaseSize(self, QSize)
-
setContentsMargins(self, int, int, int, int)¶ setContentsMargins(self, QMargins)
-
setContextMenuPolicy(self, Qt.ContextMenuPolicy)¶
-
setCursor(self, Union[QCursor, Qt.CursorShape])¶
-
setDisabled(self, bool)¶
-
setEnabled(self, bool)¶
-
setFixedHeight(self, int)¶
-
setFixedSize(self, QSize)¶ setFixedSize(self, int, int)
-
setFixedWidth(self, int)¶
-
setFocus(self)¶ setFocus(self, Qt.FocusReason)
-
setFocusPolicy(self, Qt.FocusPolicy)¶
-
setFocusProxy(self, QWidget)¶
-
setFont(self, QFont)¶
-
setForegroundRole(self, QPalette.ColorRole)¶
-
setGeometry(self, QRect)¶ setGeometry(self, int, int, int, int)
-
setGraphicsEffect(self, QGraphicsEffect)¶
-
setHidden(self, bool)¶
-
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])¶
-
setLayout(self, QLayout)¶
-
setLayoutDirection(self, Qt.LayoutDirection)¶
-
setLocale(self, QLocale)¶
-
setMask(self, QBitmap)¶ setMask(self, QRegion)
-
setMaximumHeight(self, int)¶
-
setMaximumSize(self, int, int)¶ setMaximumSize(self, QSize)
-
setMaximumWidth(self, int)¶
-
setMinimumHeight(self, int)¶
-
setMinimumSize(self, int, int)¶ setMinimumSize(self, QSize)
-
setMinimumWidth(self, int)¶
-
setMouseTracking(self, bool)¶
-
setObjectName(self, str)¶
-
setPalette(self, QPalette)¶
-
setParent(self, QWidget)¶ setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
-
setProperty(self, str, Any) → bool¶
-
setShortcutAutoRepeat(self, int, enabled: bool = True)¶
-
setShortcutEnabled(self, int, enabled: bool = True)¶
-
setSizeIncrement(self, int, int)¶ setSizeIncrement(self, QSize)
-
setSizePolicy(self, QSizePolicy)¶ setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
-
setStatusTip(self, str)¶
-
setStyle(self, QStyle)¶
-
setStyleSheet(self, str)¶
-
setTabOrder(QWidget, QWidget)¶
-
setTabletTracking(self, bool)¶
-
setToolTip(self, str)¶
-
setToolTipDuration(self, int)¶
-
setUpdatesEnabled(self, bool)¶
-
setVisible(self, bool)¶
-
setWhatsThis(self, str)¶
-
setWindowFilePath(self, str)¶
-
setWindowFlag(self, Qt.WindowType, on: bool = True)¶
-
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])¶
-
setWindowIcon(self, QIcon)¶
-
setWindowIconText(self, str)¶
-
setWindowModality(self, Qt.WindowModality)¶
-
setWindowModified(self, bool)¶
-
setWindowOpacity(self, float)¶
-
setWindowRole(self, str)¶
-
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])¶
-
setWindowTitle(self, str)¶
-
show(self)¶
-
showEvent(self, QShowEvent)¶
-
showFullScreen(self)¶
-
showMaximized(self)¶
-
showMinimized(self)¶
-
showNormal(self)¶
-
signalsBlocked(self) → bool¶
-
size(self) → QSize¶
-
sizeHint(self) → QSize¶
-
sizeIncrement(self) → QSize¶
-
sizePolicy(self) → QSizePolicy¶
-
stackUnder(self, QWidget)¶
-
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int¶
-
staticMetaObject= <PyQt5.QtCore.QMetaObject object>¶
-
statusTip(self) → str¶
-
style(self) → QStyle¶
-
styleSheet(self) → str¶
-
tabletEvent(self, QTabletEvent)¶
-
testAttribute(self, Qt.WidgetAttribute) → bool¶
-
thread(self) → QThread¶
-
timerEvent(self, QTimerEvent)¶
-
toolTip(self) → str¶
-
toolTipDuration(self) → int¶
-
tr(self, str, disambiguation: str = None, n: int = -1) → str¶
-
underMouse(self) → bool¶
-
ungrabGesture(self, Qt.GestureType)¶
-
unsetCursor(self)¶
-
unsetLayoutDirection(self)¶
-
unsetLocale(self)¶
-
update(self)¶ update(self, QRect) update(self, QRegion) update(self, int, int, int, int)
-
updateGeometry(self)¶
-
updateMicroFocus(self)¶
-
updatesEnabled(self) → bool¶
-
visibleRegion(self) → QRegion¶
-
whatsThis(self) → str¶
-
wheelEvent(self, QWheelEvent)¶
-
width(self) → int¶
-
widthMM(self) → int¶
-
winId(self) → sip.voidptr¶
-
window(self) → QWidget¶
-
windowFilePath(self) → str¶
-
windowFlags(self) → Qt.WindowFlags¶
-
windowHandle(self) → QWindow¶
-
windowIcon(self) → QIcon¶
-
windowIconChanged¶ windowIconChanged(self, QIcon) [signal]
-
windowIconText(self) → str¶
-
windowIconTextChanged¶ windowIconTextChanged(self, str) [signal]
-
windowModality(self) → Qt.WindowModality¶
-
windowOpacity(self) → float¶
-
windowRole(self) → str¶
-
windowState(self) → Qt.WindowStates¶
-
windowTitle(self) → str¶
-
windowTitleChanged¶ windowTitleChanged(self, str) [signal]
-
windowType(self) → Qt.WindowType¶
-
x(self) → int¶
-
y(self) → int¶
-