easymodel.cascade.CBLevel¶
-
class
easymodel.cascade.CBLevel(parent=None)[source]¶ Bases:
easymodel.cascade.AbstractLevel,PySide.QtGui.QComboBoxA 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 widgetRaises: None -
__init__(parent=None)[source]¶ Constructs a new cblevel with the given parent
Parameters: parent ( QtGui.QWidget) – the parent widgetRaises: None
Methods
__init__([parent])Constructs a new cblevel with the given parent acceptDropsaccessibleDescriptionaccessibleNameactionEventactionsactivateWindowaddActionaddActionsaddItemaddItemsadjustSizeautoFillBackgroundbackgroundRolebaseSizeblockSignalschangeEventchildAtchildEventchildrenchildrenRectchildrenRegionclearclearEditTextclearFocusclearMaskclosecloseEventcolorCountcompleterconnectconnectNotifycontentsMarginscontentsRectcontextMenuEventcontextMenuPolicycountcreateWinIdcurrentIndexcurrentTextcurrent_changed(i)Slot for when the current index changes. cursorcustomEventdeleteLaterdepthdestroydevTypedisconnectdisconnectNotifydragEnterEventdragLeaveEventdragMoveEventdropEventdumpObjectInfodumpObjectTreeduplicatesEnableddynamicPropertyNameseffectiveWinIdemitensurePolishedenterEventeventeventFilterfindChildfindChildrenfindDatafindTextfocusInEventfocusNextChildfocusNextPrevChildfocusOutEventfocusPolicyfocusPreviousChildfocusProxyfocusWidgetfontfontInfofontMetricsforegroundRoleframeGeometryframeSizegeometrygetContentsMarginsget_model()Return the model grabGesturegrabKeyboardgrabMousegrabShortcutgraphicsEffectgraphicsProxyWidgethasFocushasFramehasMouseTrackingheightheightForWidthheightMMhidehideEventhidePopupiconSizeinheritsinitStyleOptioninputContextinputMethodEventinputMethodHintsinputMethodQueryinsertActioninsertActionsinsertIteminsertItemsinsertPolicyinsertSeparatorinstallEventFilterisActiveWindowisAncestorOfisEditableisEnabledisEnabledToisFullScreenisHiddenisLeftToRightisMaximizedisMinimizedisModalisRightToLeftisVisibleisVisibleToisWidgetTypeisWindowisWindowModifieditemDataitemDelegateitemIconitemTextkeyPressEventkeyReleaseEventkeyboardGrabberkillTimerlanguageChangelayoutlayoutDirectionleaveEventlineEditlocalelogicalDpiXlogicalDpiYlowermapFrommapFromGlobalmapFromParentmapTomapToGlobalmapToParentmaskmaxCountmaxVisibleItemsmaximumHeightmaximumSizemaximumWidthmetaObjectmetricminimumContentsLengthminimumHeightminimumSizeminimumSizeHintminimumWidthmodelmodelColumnmodel_changed(model)Apply the model to the combobox mouseDoubleClickEventmouseGrabbermouseMoveEventmousePressEventmouseReleaseEventmovemoveEventmoveToThreadnativeParentWidgetnextInFocusChainnormalGeometrynumColorsobjectNameoverrideWindowFlagsoverrideWindowStatepaintEnginepaintEventpaintingActivepaletteparentparentWidgetphysicalDpiXphysicalDpiYpospreviousInFocusChainpropertyraise_receiversrectregisterUserDatareleaseKeyboardreleaseMousereleaseShortcutremoveActionremoveEventFilterremoveItemrenderrepaintresetInputContextresizeresizeEventrestoreGeometryrootModelIndexsaveGeometryscrollselected_indexes()Return the current index sendersenderSignalIndexsetAcceptDropssetAccessibleDescriptionsetAccessibleNamesetAttributesetAutoFillBackgroundsetBackgroundRolesetBaseSizesetCompletersetContentsMarginssetContextMenuPolicysetCurrentIndexsetCursorsetDisabledsetDuplicatesEnabledsetEditTextsetEditablesetEnabledsetFixedHeightsetFixedSizesetFixedWidthsetFocussetFocusPolicysetFocusProxysetFontsetForegroundRolesetFramesetGeometrysetGraphicsEffectsetHiddensetIconSizesetInputContextsetInputMethodHintssetInsertPolicysetItemDatasetItemDelegatesetItemIconsetItemTextsetLayoutsetLayoutDirectionsetLineEditsetLocalesetMasksetMaxCountsetMaxVisibleItemssetMaximumHeightsetMaximumSizesetMaximumWidthsetMinimumContentsLengthsetMinimumHeightsetMinimumSizesetMinimumWidthsetModelsetModelColumnsetMouseTrackingsetObjectNamesetPalettesetParentsetPropertysetRootModelIndexsetShortcutAutoRepeatsetShortcutEnabledsetSizeAdjustPolicysetSizeIncrementsetSizePolicysetStatusTipsetStylesetStyleSheetsetTabOrdersetToolTipsetUpdatesEnabledsetValidatorsetViewsetVisiblesetWhatsThissetWindowFilePathsetWindowFlagssetWindowIconsetWindowIconTextsetWindowModalitysetWindowModifiedsetWindowOpacitysetWindowRolesetWindowStatesetWindowTitleset_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 showshowEventshowFullScreenshowMaximizedshowMinimizedshowNormalshowPopupsignalsBlockedsizesizeAdjustPolicysizeHintsizeIncrementsizePolicystackUnderstartTimerstatusTipstylestyleSheettabletEventtestAttributethreadtimerEventtoolTiptrtrUtf8underMouseungrabGestureunsetCursorunsetLayoutDirectionunsetLocaleupdateupdateGeometryupdateMicroFocusupdatesEnabledvalidatorviewvisibleRegionwhatsThiswheelEventwidthwidthMMwinIdwindowwindowFilePathwindowFlagswindowIconwindowIconTextwindowModalitywindowOpacitywindowRolewindowStatewindowTitlewindowTypexx11Infox11PictureHandleyAttributes
AdjustToContentsAdjustToContentsOnFirstShowAdjustToMinimumContentsLengthAdjustToMinimumContentsLengthWithIconDrawChildrenDrawWindowBackgroundIgnoreMaskInsertAfterCurrentInsertAlphabeticallyInsertAtBottomInsertAtCurrentInsertAtTopInsertBeforeCurrentNoInsertPdmDepthPdmDpiXPdmDpiYPdmHeightPdmHeightMMPdmNumColorsPdmPhysicalDpiXPdmPhysicalDpiYPdmWidthPdmWidthMMactivatedcurrentIndexChangedcustomContextMenuRequesteddestroyededitTextChangedhighlightednew_rootpaintersstaticMetaObjecttextChanged-
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 useReturns: 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 indexReturns: 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_rootsignal.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 toReturns: None Return type: None Raises: None
-
staticMetaObject= <PySide.QtCore.QMetaObject object>¶
-