easymodel.cascade.ListLevel

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

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

A level that consists of a listview to be used in a CascadeView

Constructs a new listlevel with the given parent

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

Constructs a new listlevel with the given parent

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

Methods

__init__([parent]) Constructs a new listlevel with the given parent
acceptDrops
accessibleDescription
accessibleName
actionEvent
actions
activateWindow
addAction
addActions
addScrollBarWidget
adjustSize
alternatingRowColors
autoFillBackground
autoScrollMargin
backgroundRole
baseSize
batchSize
blockSignals
changeEvent
childAt
childEvent
children
childrenRect
childrenRegion
clearFocus
clearMask
clearPropertyFlags
clearSelection
close
closeEditor
closeEvent
closePersistentEditor
colorCount
commitData
connect
connectNotify
contentsMargins
contentsRect
contentsSize
contextMenuEvent
contextMenuPolicy
cornerWidget
createWinId
currentChanged(current, prev) Slot for when the current index changes.
currentIndex
cursor
customEvent
dataChanged
defaultDropAction
deleteLater
depth
destroy
devType
dirtyRegionOffset
disconnect
disconnectNotify
doAutoScroll
doItemsLayout
dragDropMode
dragDropOverwriteMode
dragEnabled
dragEnterEvent
dragLeaveEvent
dragMoveEvent
drawFrame
dropEvent
dropIndicatorPosition
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
edit
editTriggers
editorDestroyed
effectiveWinId
emit
ensurePolished
enterEvent
event
eventFilter
executeDelayedItemsLayout
findChild
findChildren
flow
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPolicy
focusPreviousChild
focusProxy
focusWidget
font
fontInfo
fontMetrics
foregroundRole
frameGeometry
frameRect
frameShadow
frameShape
frameSize
frameStyle
frameWidth
geometry
getContentsMargins
get_model() Return the model
grabGesture
grabKeyboard
grabMouse
grabShortcut
graphicsEffect
graphicsProxyWidget
gridSize
hasAutoScroll
hasFocus
hasMouseTracking
height
heightForWidth
heightMM
hide
hideEvent
horizontalOffset
horizontalScrollBar
horizontalScrollBarPolicy
horizontalScrollMode
horizontalScrollbarAction
horizontalScrollbarValueChanged
iconSize
indexAt
indexWidget
inherits
inputContext
inputMethodEvent
inputMethodHints
inputMethodQuery
insertAction
insertActions
installEventFilter
internalDrag
internalDrop
isActiveWindow
isAncestorOf
isEnabled
isEnabledTo
isFullScreen
isHidden
isIndexHidden
isLeftToRight
isMaximized
isMinimized
isModal
isRightToLeft
isRowHidden
isSelectionRectVisible
isVisible
isVisibleTo
isWidgetType
isWindow
isWindowModified
isWrapping
itemDelegate
itemDelegateForColumn
itemDelegateForRow
keyPressEvent
keyReleaseEvent
keyboardGrabber
keyboardSearch
killTimer
languageChange
layout
layoutDirection
layoutMode
leaveEvent
lineWidth
locale
logicalDpiX
logicalDpiY
lower
mapFrom
mapFromGlobal
mapFromParent
mapTo
mapToGlobal
mapToParent
mask
maximumHeight
maximumSize
maximumViewportSize
maximumWidth
metaObject
metric
midLineWidth
minimumHeight
minimumSize
minimumSizeHint
minimumWidth
model
modelColumn
model_changed(model) Apply the model to the combobox
mouseDoubleClickEvent
mouseGrabber
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
move
moveCursor
moveEvent
moveToThread
movement
nativeParentWidget
nextInFocusChain
normalGeometry
numColors
objectName
openPersistentEditor
overrideWindowFlags
overrideWindowState
paintEngine
paintEvent
paintingActive
palette
parent
parentWidget
physicalDpiX
physicalDpiY
pos
previousInFocusChain
property
raise_
receivers
rect
rectForIndex
registerUserData
releaseKeyboard
releaseMouse
releaseShortcut
removeAction
removeEventFilter
render
repaint
reset
resetInputContext
resize
resizeContents
resizeEvent(event) Schedules an item layout if resize mode is “adjust”.
resizeMode
restoreGeometry
rootIndex
rowsAboutToBeRemoved
rowsInserted
saveGeometry
scheduleDelayedItemsLayout
scroll
scrollBarWidgets
scrollContentsBy
scrollDirtyRegion
scrollTo
scrollToBottom
scrollToTop
selectAll
selectedIndexes
selected_indexes() Return the current index
selectionBehavior
selectionChanged
selectionCommand
selectionMode
selectionModel
sender
senderSignalIndex
setAcceptDrops
setAccessibleDescription
setAccessibleName
setAlternatingRowColors
setAttribute
setAutoFillBackground
setAutoScroll
setAutoScrollMargin
setBackgroundRole
setBaseSize
setBatchSize
setContentsMargins
setContextMenuPolicy
setCornerWidget
setCurrentIndex
setCursor
setDefaultDropAction
setDirtyRegion
setDisabled
setDragDropMode
setDragDropOverwriteMode
setDragEnabled
setDropIndicatorShown
setEditTriggers
setEnabled
setFixedHeight
setFixedSize
setFixedWidth
setFlow
setFocus
setFocusPolicy
setFocusProxy
setFont
setForegroundRole
setFrameRect
setFrameShadow
setFrameShape
setFrameStyle
setGeometry
setGraphicsEffect
setGridSize
setHidden
setHorizontalScrollBar
setHorizontalScrollBarPolicy
setHorizontalScrollMode
setIconSize
setIndexWidget
setInputContext
setInputMethodHints
setItemDelegate
setItemDelegateForColumn
setItemDelegateForRow
setLayout
setLayoutDirection
setLayoutMode
setLineWidth
setLocale
setMask
setMaximumHeight
setMaximumSize
setMaximumWidth
setMidLineWidth
setMinimumHeight
setMinimumSize
setMinimumWidth
setModel
setModelColumn
setMouseTracking
setMovement
setObjectName
setPalette
setParent
setPositionForIndex
setProperty
setResizeMode
setRootIndex
setRowHidden
setSelection
setSelectionBehavior
setSelectionMode
setSelectionModel
setSelectionRectVisible
setShortcutAutoRepeat
setShortcutEnabled
setSizeIncrement
setSizePolicy
setSpacing
setState
setStatusTip
setStyle
setStyleSheet
setTabKeyNavigation
setTabOrder
setTextElideMode
setToolTip
setUniformItemSizes
setUpdatesEnabled
setVerticalScrollBar
setVerticalScrollBarPolicy
setVerticalScrollMode
setViewMode
setViewport
setViewportMargins
setVisible
setWhatsThis
setWindowFilePath
setWindowFlags
setWindowIcon
setWindowIconText
setWindowModality
setWindowModified
setWindowOpacity
setWindowRole
setWindowState
setWindowTitle
setWordWrap
setWrapping
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 list
setupViewport
show
showDropIndicator
showEvent
showFullScreen
showMaximized
showMinimized
showNormal
signalsBlocked
size
sizeHint
sizeHintForColumn
sizeHintForIndex
sizeHintForRow
sizeIncrement
sizePolicy
spacing
stackUnder
startAutoScroll
startDrag
startTimer
state
statusTip
stopAutoScroll
style
styleSheet
tabKeyNavigation
tabletEvent
testAttribute
textElideMode
thread
timerEvent
toolTip
tr
trUtf8
underMouse
ungrabGesture
uniformItemSizes
unsetCursor
unsetLayoutDirection
unsetLocale
update
updateEditorData
updateEditorGeometries
updateGeometries
updateGeometry
updateMicroFocus
updatesEnabled
verticalOffset
verticalScrollBar
verticalScrollBarPolicy
verticalScrollMode
verticalScrollbarAction
verticalScrollbarValueChanged
viewMode
viewOptions
viewport
viewportEvent
visibleRegion
visualRect
visualRegionForSelection
whatsThis
wheelEvent
width
widthMM
winId
window
windowFilePath
windowFlags
windowIcon
windowIconText
windowModality
windowOpacity
windowRole
windowState
windowTitle
windowType
wordWrap
x
x11Info
x11PictureHandle
y

Attributes

AboveItem
Adjust
AllEditTriggers
AnimatingState
AnyKeyPressed
Batched
BelowItem
Box
CollapsingState
ContiguousSelection
CurrentChanged
DoubleClicked
DragDrop
DragOnly
DragSelectingState
DraggingState
DrawChildren
DrawWindowBackground
DropOnly
EditKeyPressed
EditingState
EnsureVisible
ExpandingState
ExtendedSelection
Fixed
Free
HLine
IconMode
IgnoreMask
InternalMove
LeftToRight
ListMode
MoveDown
MoveEnd
MoveHome
MoveLeft
MoveNext
MovePageDown
MovePageUp
MovePrevious
MoveRight
MoveUp
MultiSelection
NoDragDrop
NoEditTriggers
NoFrame
NoSelection
NoState
OnItem
OnViewport
Panel
PdmDepth
PdmDpiX
PdmDpiY
PdmHeight
PdmHeightMM
PdmNumColors
PdmPhysicalDpiX
PdmPhysicalDpiY
PdmWidth
PdmWidthMM
Plain
PositionAtBottom
PositionAtCenter
PositionAtTop
Raised
ScrollPerItem
ScrollPerPixel
SelectColumns
SelectItems
SelectRows
SelectedClicked
Shadow_Mask
Shape_Mask
SinglePass
SingleSelection
Snap
Static
StyledPanel
Sunken
TopToBottom
VLine
WinPanel
activated
clicked
customContextMenuRequested
destroyed
doubleClicked
entered
indexesMoved
new_root
painters
pressed
staticMetaObject
viewportEntered
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 list

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
currentChanged(current, prev)[source]

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

Parameters:
  • current (QtGui.QModelIndex) – the new current index
  • prev (QtGui.QModelIndex) – the previous 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
resizeEvent(event)[source]

Schedules an item layout if resize mode is “adjust”. Somehow this is needed for correctly scaling down items.

Parameters:event (QtCore.QEvent) – the resize event
Returns:None
Return type:None
Raises:None
staticMetaObject = <PySide.QtCore.QMetaObject object>