easymodel.cascade.CBLevel

class easymodel.cascade.CBLevel(parent=None)[source]

Bases: easymodel.cascade.AbstractLevel, PySide.QtGui.QComboBox

A level that consists of a simple combobox to be used in a CascadeView

Constructs a new cblevel with the given parent

Parameters:parent (QtGui.QWidget) – the parent widget
Raises:None
__init__(parent=None)[source]

Constructs a new cblevel with the given parent

Parameters:parent (QtGui.QWidget) – the parent widget
Raises:None

Methods

__init__([parent]) Constructs a new cblevel with the given parent
acceptDrops
accessibleDescription
accessibleName
actionEvent
actions
activateWindow
addAction
addActions
addItem
addItems
adjustSize
autoFillBackground
backgroundRole
baseSize
blockSignals
changeEvent
childAt
childEvent
children
childrenRect
childrenRegion
clear
clearEditText
clearFocus
clearMask
close
closeEvent
colorCount
completer
connect
connectNotify
contentsMargins
contentsRect
contextMenuEvent
contextMenuPolicy
count
createWinId
currentIndex
currentText
current_changed(i) Slot for when the current index changes.
cursor
customEvent
deleteLater
depth
destroy
devType
disconnect
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
dumpObjectInfo
dumpObjectTree
duplicatesEnabled
dynamicPropertyNames
effectiveWinId
emit
ensurePolished
enterEvent
event
eventFilter
findChild
findChildren
findData
findText
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPolicy
focusPreviousChild
focusProxy
focusWidget
font
fontInfo
fontMetrics
foregroundRole
frameGeometry
frameSize
geometry
getContentsMargins
get_model() Return the model
grabGesture
grabKeyboard
grabMouse
grabShortcut
graphicsEffect
graphicsProxyWidget
hasFocus
hasFrame
hasMouseTracking
height
heightForWidth
heightMM
hide
hideEvent
hidePopup
iconSize
inherits
initStyleOption
inputContext
inputMethodEvent
inputMethodHints
inputMethodQuery
insertAction
insertActions
insertItem
insertItems
insertPolicy
insertSeparator
installEventFilter
isActiveWindow
isAncestorOf
isEditable
isEnabled
isEnabledTo
isFullScreen
isHidden
isLeftToRight
isMaximized
isMinimized
isModal
isRightToLeft
isVisible
isVisibleTo
isWidgetType
isWindow
isWindowModified
itemData
itemDelegate
itemIcon
itemText
keyPressEvent
keyReleaseEvent
keyboardGrabber
killTimer
languageChange
layout
layoutDirection
leaveEvent
lineEdit
locale
logicalDpiX
logicalDpiY
lower
mapFrom
mapFromGlobal
mapFromParent
mapTo
mapToGlobal
mapToParent
mask
maxCount
maxVisibleItems
maximumHeight
maximumSize
maximumWidth
metaObject
metric
minimumContentsLength
minimumHeight
minimumSize
minimumSizeHint
minimumWidth
model
modelColumn
model_changed(model) Apply the model to the combobox
mouseDoubleClickEvent
mouseGrabber
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
move
moveEvent
moveToThread
nativeParentWidget
nextInFocusChain
normalGeometry
numColors
objectName
overrideWindowFlags
overrideWindowState
paintEngine
paintEvent
paintingActive
palette
parent
parentWidget
physicalDpiX
physicalDpiY
pos
previousInFocusChain
property
raise_
receivers
rect
registerUserData
releaseKeyboard
releaseMouse
releaseShortcut
removeAction
removeEventFilter
removeItem
render
repaint
resetInputContext
resize
resizeEvent
restoreGeometry
rootModelIndex
saveGeometry
scroll
selected_indexes() Return the current index
sender
senderSignalIndex
setAcceptDrops
setAccessibleDescription
setAccessibleName
setAttribute
setAutoFillBackground
setBackgroundRole
setBaseSize
setCompleter
setContentsMargins
setContextMenuPolicy
setCurrentIndex
setCursor
setDisabled
setDuplicatesEnabled
setEditText
setEditable
setEnabled
setFixedHeight
setFixedSize
setFixedWidth
setFocus
setFocusPolicy
setFocusProxy
setFont
setForegroundRole
setFrame
setGeometry
setGraphicsEffect
setHidden
setIconSize
setInputContext
setInputMethodHints
setInsertPolicy
setItemData
setItemDelegate
setItemIcon
setItemText
setLayout
setLayoutDirection
setLineEdit
setLocale
setMask
setMaxCount
setMaxVisibleItems
setMaximumHeight
setMaximumSize
setMaximumWidth
setMinimumContentsLength
setMinimumHeight
setMinimumSize
setMinimumWidth
setModel
setModelColumn
setMouseTracking
setObjectName
setPalette
setParent
setProperty
setRootModelIndex
setShortcutAutoRepeat
setShortcutEnabled
setSizeAdjustPolicy
setSizeIncrement
setSizePolicy
setStatusTip
setStyle
setStyleSheet
setTabOrder
setToolTip
setUpdatesEnabled
setValidator
setView
setVisible
setWhatsThis
setWindowFilePath
setWindowFlags
setWindowIcon
setWindowIconText
setWindowModality
setWindowModified
setWindowOpacity
setWindowRole
setWindowState
setWindowTitle
set_index(index) Set the current index to the row of the given index
set_model(model) Set the model
set_root(index) Set the given index as root index of the combobox
show
showEvent
showFullScreen
showMaximized
showMinimized
showNormal
showPopup
signalsBlocked
size
sizeAdjustPolicy
sizeHint
sizeIncrement
sizePolicy
stackUnder
startTimer
statusTip
style
styleSheet
tabletEvent
testAttribute
thread
timerEvent
toolTip
tr
trUtf8
underMouse
ungrabGesture
unsetCursor
unsetLayoutDirection
unsetLocale
update
updateGeometry
updateMicroFocus
updatesEnabled
validator
view
visibleRegion
whatsThis
wheelEvent
width
widthMM
winId
window
windowFilePath
windowFlags
windowIcon
windowIconText
windowModality
windowOpacity
windowRole
windowState
windowTitle
windowType
x
x11Info
x11PictureHandle
y

Attributes

AdjustToContents
AdjustToContentsOnFirstShow
AdjustToMinimumContentsLength
AdjustToMinimumContentsLengthWithIcon
DrawChildren
DrawWindowBackground
IgnoreMask
InsertAfterCurrent
InsertAlphabetically
InsertAtBottom
InsertAtCurrent
InsertAtTop
InsertBeforeCurrent
NoInsert
PdmDepth
PdmDpiX
PdmDpiY
PdmHeight
PdmHeightMM
PdmNumColors
PdmPhysicalDpiX
PdmPhysicalDpiY
PdmWidth
PdmWidthMM
activated
currentIndexChanged
customContextMenuRequested
destroyed
editTextChanged
highlighted
new_root
painters
staticMetaObject
textChanged
model_changed(model)[source]

Apply the model to the combobox

When a level instance is created, the model is None. So it has to be set afterwards. Then this method will be called and your level should somehow use the model

Parameters:model (QtCore.QAbstractItemModel) – the model that the level should use
Returns:None
Return type:None
Raises:None
set_root(index)[source]

Set the given index as root index of the combobox

Parameters:index (QtCore.QModelIndex) – the new root index
Returns:None
Return type:None
Raises:None
selected_indexes()[source]

Return the current index

Returns:the current index in a list
Return type:list of QtCore.QModelIndex
Raises:None
current_changed(i)[source]

Slot for when the current index changes. Emits the AbstractLevel.new_root signal.

Parameters:index (int) – the new current index
Returns:None
Return type:None
Raises:None
set_index(index)[source]

Set the current index to the row of the given index

Parameters:index (QtCore.QModelIndex) – the index to set the level to
Returns:None
Return type:None
Raises:None
staticMetaObject = <PySide.QtCore.QMetaObject object>