Package schrodinger :: Package application :: Package msv :: Package gui :: Module popup_dialogs :: Class MsvComboBox
[hide private]
[frames] | no frames]

Class MsvComboBox

       object --+                        
                |                        
sip.simplewrapper --+                    
                    |                    
          sip.wrapper --+                
                        |                
     PyQt5.QtCore.QObject --+            
                            |            
           object --+       |            
                    |       |            
    sip.simplewrapper --+   |            
                        |   |            
 PyQt5.QtGui.QPaintDevice --+            
                            |            
      PyQt5.QtWidgets.QWidget --+        
                                |        
        PyQt5.QtWidgets.QComboBox --+    
                                    |    
             ui.qt.swidgets.SComboBox --+
                                        |
                                       MsvComboBox
Known Subclasses:

Subclass of swidgets.SComboBox that defines functionality to synchronize options with tabbed MSV widgets.

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QComboBox: InsertPolicy, SizeAdjustPolicy

Inherited from PyQt5.QtWidgets.QWidget: RenderFlag, RenderFlags

Inherited from PyQt5.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
__init__(self, parent=None, items=None, default_item='', default_index=0, command=None, nocall=False, layout=None, tip='', itemdict=None)
Create an SComboBox object.
 
setValue(self, value)
Defined to make this widget compatible with synchronizable with MSV widgets.

Inherited from ui.qt.swidgets.SComboBox: addAction, addItemsFromDict, currentData, currentIndexChanged, currentString, findDataPy, keyPressEvent, reset, setCurrentData, setCurrentIndex, setCurrentText

Inherited from ui.qt.swidgets.SComboBox (private): _actionTriggered, _actionsPresent

Inherited from PyQt5.QtWidgets.QComboBox: __len__, activated, addItem, addItems, changeEvent, clear, clearEditText, completer, contextMenuEvent, count, currentIndex, currentText, currentTextChanged, duplicatesEnabled, editTextChanged, event, findData, findText, focusInEvent, focusOutEvent, hasFrame, hideEvent, hidePopup, highlighted, iconSize, initStyleOption, inputMethodEvent, inputMethodQuery, insertItem, insertItems, insertPolicy, insertSeparator, isEditable, itemData, itemDelegate, itemIcon, itemText, keyReleaseEvent, lineEdit, maxCount, maxVisibleItems, minimumContentsLength, minimumSizeHint, model, modelColumn, mousePressEvent, mouseReleaseEvent, paintEvent, removeItem, resizeEvent, rootModelIndex, setCompleter, setDuplicatesEnabled, setEditText, setEditable, setFrame, setIconSize, setInsertPolicy, setItemData, setItemDelegate, setItemIcon, setItemText, setLineEdit, setMaxCount, setMaxVisibleItems, setMinimumContentsLength, setModel, setModelColumn, setRootModelIndex, setSizeAdjustPolicy, setValidator, setView, showEvent, showPopup, sizeAdjustPolicy, sizeHint, validator, view, wheelEvent

Inherited from PyQt5.QtWidgets.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuPolicy, create, createWindowContainer, cursor, customContextMenuRequested, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, find, focusNextChild, focusNextPrevChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, height, heightForWidth, hide, initPainter, inputMethodHints, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, previousInFocusChain, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, repaint, resize, restoreGeometry, saveGeometry, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, winId, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconChanged, windowIconText, windowIconTextChanged, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowTitleChanged, windowType, x, y

Inherited from PyQt5.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, objectNameChanged, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Inherited from PyQt5.QtGui.QPaintDevice: colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, heightMM, logicalDpiX, logicalDpiY, paintingActive, physicalDpiX, physicalDpiY, widthMM

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from PyQt5.QtWidgets.QComboBox: AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon, InsertAfterCurrent, InsertAlphabetically, InsertAtBottom, InsertAtCurrent, InsertAtTop, InsertBeforeCurrent, NoInsert

Inherited from PyQt5.QtWidgets.QWidget: DrawChildren, DrawWindowBackground, IgnoreMask

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Inherited from PyQt5.QtGui.QPaintDevice: PdmDepth, PdmDevicePixelRatio, PdmDevicePixelRatioScaled, PdmDpiX, PdmDpiY, PdmHeight, PdmHeightMM, PdmNumColors, PdmPhysicalDpiX, PdmPhysicalDpiY, PdmWidth, PdmWidthMM

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None, items=None, default_item='', default_index=0, command=None, nocall=False, layout=None, tip='', itemdict=None)
(Constructor)

 

Create an SComboBox object.

Parameters:
  • parent - The parent widget of this SComboBox
  • items - list of items (str) to be added to the ComboBox - see also itemdict.
  • default_item - text of the item to select initially and upon reset
  • default_index - the index of the item to select initially and upon reset. default_item overrides this parameter.
  • command - The slot to connect to the currentIndexChanged[str] signal. This command will be called when the default item is selected during initialization unless nocall=True.
  • nocall - True if command should be called during initialization, False if not
  • layout - The layout to place this widget in
  • tip - The tooltip for the combo
  • itemdict - An OrderedDictionary with ComboBox items as keys and data as values. The data for the current ComboBox item is returned by the currentData method. If both items and itemdict are given, items are added first.
Overrides: object.__init__
(inherited documentation)

setValue(self, value)

 

Defined to make this widget compatible with synchronizable with MSV widgets.

Parameters:
  • value (str) - Value to set for the combobox. Will raise ValueError if the value is not in the list of items.
Raises:
  • ValueError - When the specified item is not in the list of items in the combobox.