easymodel.cascade.ComboBoxCascadeView¶
-
class
easymodel.cascade.ComboBoxCascadeView(depth, parent=None, flags=0, headers=None)[source]¶ Bases:
easymodel.cascade.AbstractCascadeViewA cascade view that has a combo box for every level and a label for every header. The header labels will be next to each combobox.
Constructs a new ComboBoxCascadeView with the given depth
Parameters: - depth (
int) – the depth of the tree - parent (
QtGui.QWidget) – the parent of the widget - flags (
QtCore.Qt.WindowFlags) – the flags for the widget - headers (list of str|None) – a list of label texts to put for the labels next to the comboboxes
the list does not need to have the length of
depth. If the list is None, no headers will be created.
Raises: None
-
__init__(depth, parent=None, flags=0, headers=None)[source]¶ Constructs a new ComboBoxCascadeView with the given depth
Parameters: - depth (
int) – the depth of the tree - parent (
QtGui.QWidget) – the parent of the widget - flags (
QtCore.Qt.WindowFlags) – the flags for the widget - headers (list of str|None) – a list of label texts to put for the labels next to the comboboxes
the list does not need to have the length of
depth. If the list is None, no headers will be created.
Raises: None
- depth (
Methods
__init__(depth[, parent, flags, headers])Constructs a new ComboBoxCascadeView with the given depth acceptDropsaccessibleDescriptionaccessibleNameactionEventactionsactivateWindowaddActionaddActionsadd_lvl_to_ui(level, header)Insert the level and header into the ui. adjustSizeautoFillBackgroundbackgroundRolebaseSizeblockSignalsbuild_view()Creates all levels and adds them to the ui changeEventchildAtchildEventchildrenchildrenRectchildrenRegionclearFocusclearMaskclosecloseEventcolorCountconnectconnectNotifycontentsMarginscontentsRectcontextMenuEventcontextMenuPolicycreateWinIdcreate_header(depth)Create and return a widget that will be used as a header for the given depth create_level(depth)Create and return a level for the given depth cursorcustomEventdeleteLaterdestroydevTypedisconnectdisconnectNotifydragEnterEventdragLeaveEventdragMoveEventdropEventdumpObjectInfodumpObjectTreedynamicPropertyNameseffectiveWinIdemitensurePolishedenterEventeventeventFilterfindChildfindChildrenfocusInEventfocusNextChildfocusNextPrevChildfocusOutEventfocusPolicyfocusPreviousChildfocusProxyfocusWidgetfontfontInfofontMetricsforegroundRoleframeGeometryframeSizegeometrygetContentsMarginsgrabGesturegrabKeyboardgrabMousegrabShortcutgraphicsEffectgraphicsProxyWidgethasFocushasMouseTrackingheightheightForWidthheightMMhidehideEventinheritsinputContextinputMethodEventinputMethodHintsinputMethodQueryinsertActioninsertActionsinstallEventFilterisActiveWindowisAncestorOfisEnabledisEnabledToisFullScreenisHiddenisLeftToRightisMaximizedisMinimizedisModalisRightToLeftisVisibleisVisibleToisWidgetTypeisWindowisWindowModifiedkeyPressEventkeyReleaseEventkeyboardGrabberkillTimerlanguageChangelayoutlayoutDirectionleaveEventlocalelogicalDpiXlogicalDpiYlowermapFrommapFromGlobalmapFromParentmapTomapToGlobalmapToParentmaskmaximumHeightmaximumSizemaximumWidthmetaObjectmetricminimumHeightminimumSizeminimumSizeHintminimumWidthmouseDoubleClickEventmouseGrabbermouseMoveEventmousePressEventmouseReleaseEventmovemoveEventmoveToThreadnativeParentWidgetnextInFocusChainnormalGeometrynumColorsobjectNameoverrideWindowFlagsoverrideWindowStatepaintEnginepaintEventpaintingActivepaletteparentparentWidgetphysicalDpiXphysicalDpiYpospreviousInFocusChainpropertyraise_receiversrectregisterUserDatareleaseKeyboardreleaseMousereleaseShortcutremoveActionremoveEventFilterrenderrepaintresetInputContextresizeresizeEventrestoreGeometrysaveGeometryscrollselected_indexes(depth)Get the selected indexes of a certain depth level sendersenderSignalIndexsetAcceptDropssetAccessibleDescriptionsetAccessibleNamesetAttributesetAutoFillBackgroundsetBackgroundRolesetBaseSizesetContentsMarginssetContextMenuPolicysetCursorsetDisabledsetEnabledsetFixedHeightsetFixedSizesetFixedWidthsetFocussetFocusPolicysetFocusProxysetFontsetForegroundRolesetGeometrysetGraphicsEffectsetHiddensetInputContextsetInputMethodHintssetLayoutsetLayoutDirectionsetLocalesetMasksetMaximumHeightsetMaximumSizesetMaximumWidthsetMinimumHeightsetMinimumSizesetMinimumWidthsetMouseTrackingsetObjectNamesetPalettesetParentsetPropertysetShortcutAutoRepeatsetShortcutEnabledsetSizeIncrementsetSizePolicysetStatusTipsetStylesetStyleSheetsetTabOrdersetToolTipsetUpdatesEnabledsetVisiblesetWhatsThissetWindowFilePathsetWindowFlagssetWindowIconsetWindowIconTextsetWindowModalitysetWindowModifiedsetWindowOpacitysetWindowRolesetWindowStatesetWindowTitleset_index(depth, index)Set the level at the given depth to the given index set_root(depth, index)Set the level’s root of the given depth to index setup_ui()Create the layouts and set some attributes of the ui showshowEventshowFullScreenshowMaximizedshowMinimizedshowNormalsignalsBlockedsizesizeHintsizeIncrementsizePolicystackUnderstartTimerstatusTipstylestyleSheettabletEventtestAttributethreadtimerEventtoolTiptrtrUtf8underMouseungrabGestureunsetCursorunsetLayoutDirectionunsetLocaleupdateupdateGeometryupdateMicroFocusupdatesEnabledvisibleRegionwhatsThiswheelEventwidthwidthMMwinIdwindowwindowFilePathwindowFlagswindowIconwindowIconTextwindowModalitywindowOpacitywindowRolewindowStatewindowTitlewindowTypexx11Infox11PictureHandleyAttributes
DrawChildrenDrawWindowBackgroundIgnoreMaskPdmDepthPdmDpiXPdmDpiYPdmHeightPdmHeightMMPdmNumColorsPdmPhysicalDpiXPdmPhysicalDpiYPdmWidthPdmWidthMMcustomContextMenuRequesteddepthReturn amount of levels destroyedmodelReturn the model paintersstaticMetaObject-
setup_ui()[source]¶ Create the layouts and set some attributes of the ui
Returns: None Return type: None Raises: None
-
create_level(depth)[source]¶ Create and return a level for the given depth
The model and root of the level will be automatically set by the view.
Parameters: depth ( int) – the depth level that the level should handleReturns: a new level for the given depth Return type: CBLevelRaises: None
-
create_header(depth)[source]¶ Create and return a widget that will be used as a header for the given depth
Override this method if you want to have header widgets. The default implementation returns None. You can return None if you do not want a header for the given depth
Parameters: depth ( int) – the depth levelReturns: a Widget that is used for the header or None Return type: QtGui.QWidget| NoneRaises: None
-
add_lvl_to_ui(level, header)[source]¶ Insert the level and header into the ui.
Parameters: - level (
AbstractLevel) – a newly created level - header (
QtCore.QWidget| None) – a newly created header
Returns: None
Return type: Raises: None
- level (
-
staticMetaObject= <PySide.QtCore.QMetaObject object>¶
- depth (