When setting backgroundColor, the background is automaticallyĮnabled, unless enableBackground is also specified with a falseįirst Argument specifies item, second argument specifies on or off. To the red, green, and blue color components. Sets tree view item's buttons to appear on the right or left.Īrgument specifies if they are to be attached to the right, if it is set to false they will attach on the left. Within a group using the middle mouse button.Īnnotate the control with an extra string value. If not cleared(default), the treeView will make parent nodes of visible nodes automatically visibleĪllow the user to perform multiple selection by holdingĬtrl or shift key while selecting items of treeView items.Īllow the user to reparent items in the tree view using the middle This flag takes precendence over other drag and drop related flags. Re-ordering / re-parenting operations can be perfomed with the middle mouse button. Flags addItem, allowDragAndDrop, allowHiddenParents, allowMultiSelection, allowReparenting, annotation, attachButtonRight, backgroundColor, borderHighlite, borderHighliteColor, buttonErase, buttonState, buttonStyle, buttonTextIcon, buttonTooltip, buttonTransparenc圜olor, buttonTransparencyOverride, buttonVisible, children, clearSelection, contextMenuCommand, defineTemplate, displayLabel, displayLabelSuffix, docTag, dragAndDropCommand, dragCallback, dropCallback, editLabelCommand, enable, enableBackground, enableButton, enableKeyboardFocus, enableKeys, enableLabel, exists, expandCollapseCommand, expandItem, flatButton, font, fontFace, fullPathName, height, hideButtons, highlightColor, highlite, highliteColor, ignoreButtonClick, image, isItemExpanded, isLeaf, isObscured, item, itemAnnotation, itemDblClickCommand, itemDblClickCommand2, itemExists, itemIndex, itemParent, itemRenamedCommand, itemSelected, itemVisible, labelBackgroundColor, manage, noBackground, numberOfButtons, numberOfPopupMenus, ornament, ornamentColor, parent, popupMenuArray, pressCommand, preventOverride, removeAll, removeItem, reverseTreeOrder, rightPressCommand, select, selectCommand, selectItem, selectionChangedCommand, selectionColor, showItem, statusBarMessage, textColor, useTemplate, visible, visibleChangeCommand, width Long name (short name)įirst argument specifies the item's name, second argument specifies the item's parent (use an empty string to have it at the top level of the tree)Īllow the user to perform drag and drop of treeView items. In query mode, return type is based on queried flag. TreeView is undoable, queryable, and editable. ![]() Setting this value will be overridden if the frame is within a layout.Go to: Synopsis. True if widget is enabled, False if disabled property frame ¶ If set to True, items with children can be selected, and to toggle open/closed requires clicking the arrow or double-clicking the item property enabled ¶ If set to False, clicking anywhere on an item with will toggle the item open or closed the item cannot be selected. CONSUMED = ¶ HANDLED = ¶ IGNORED = ¶ property background_color ¶īackground color of the widget property can_select_items_with_children ¶ Sets f(new_item_id) which is called when the user changes the selection. Removes an item and all its children (if any) set_on_selection_changed ( self : .gui.TreeView, arg0 : Callable, None ] ) → None ¶ This item is invisible, so its child are the top-level items remove_item ( self : .gui.TreeView, arg0 : int ) → None ¶ get_root_item ( self : .gui.TreeView ) → int ¶ Removes all items get_children ( self : .gui.Widget ) → List ¶ Calling it at other times will not work, as it requires some internal setup in order to function properly clear ( self : .gui.TreeView ) → None ¶ This is intended to be called only during layout, although it will also work during drawing. ![]() Returns the preferred size of the widget. ![]() add_text_item(parent, text) calc_preferred_size ( self : .gui.Widget, arg0 : .gui.LayoutContext, arg1 . ) → .gui.Size ¶ add_item(parent, widget) add_text_item ( self : .gui.TreeView, arg0 : int, arg1 : str ) → int ¶Īdds a child item to the parent. This is useful when you are replacing functionality CONSUMED = ¶ HANDLED = ¶ IGNORED = ¶ property value ¶ _init_ ( self : .gui.TreeView ) → None ¶Ĭreates an empty TreeView widget add_child ( self : .gui.Widget, arg0 : .gui.Widget ) → None ¶Īdds a child widget add_item ( self : .gui.TreeView, arg0 : int, arg1 : .gui.Widget ) → int ¶Īdds a child item to the parent. This is useful when you are augmenting base functionalityĬONSUMED : Event handler consumed the event, event handling stops, widget will not handle the event. HANDLED : Event handler handled the event, but widget will still handle the event normally. IGNORED : Event handler ignored the event, widget will handle event normally
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |