![]() ![]() Menus Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Hover Tabs Top Navigation Responsive Topnav Split Navigation Navbar with Icons Search Menu Search Bar Fixed Sidebar Side Navigation Responsive Sidebar Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Sidebar with Icons Horizontal Scroll Menu Vertical Menu Bottom Navigation Responsive Bottom Nav Bottom Border Nav Links Right Aligned Menu Links Centered Menu Link Equal Width Menu Links Fixed Menu Slide Down Bar on Scroll Hide Navbar on Scroll Shrink Navbar on Scroll Sticky Navbar Navbar on Image Hover Dropdowns Click Dropdowns Cascading Dropdown Dropdown in Topnav Dropdown in Sidenav Resp Navbar Dropdown Subnavigation Menu Dropup Mega Menu Mobile Menu Curtain Menu Collapsed Sidebar Collapsed Sidepanel Pagination Breadcrumbs Button Group Vertical Button Group Sticky Social Bar Pill Navigation Responsive Header ![]() ToRoot () return newTreeObj def tree_ToParent ( self ): """ Step up to the parent tier and set the selection in this tier to the current items index """ m_parent = self. iTREE_ROOT : #move tree to root tier newTreeObj. iTREE_CHILD : # move tree to child tier newTreeObj. iTREE_PARENT : # move the tree to the parent tier newTreeObj. m_currentIndex ) # Convert to a tree interface newTreeObj = lx. """ # create an instance of our current location in the tree newTree = WhiskyTreeView ( self. m_children # - # Each time the tree is spawned, we create a copy of ourselves at current # location in the tree and return it # - def tree_Spawn ( self, mode ): """ Spawn a new instance of this tier in the tree. removeListenerClient ( obj ) # - # Target layer in the tree # - def targetNode ( self ): """ Returns the targeted layer node in the current tier """ return self. addListenerClient ( obj ) def lport_RemoveListener ( self, obj ): """ Called from core when a listener needs to be removed from the port. NewAttributes () #- def lport_AddListener ( self, obj ): """ Called from core code with the object that wants to bind to the listener port """ self. NewShape () def notify_NewAttributes ( cls ): for client in cls. _listenerClients def notify_NewShape ( cls ): for client in cls. _listenerClients = treeListenerObj def removeListenerClient ( cls, listener ): """ When a view is destroyed, it will be removed from the list of clients that need notification. ![]() m_currentIndex = curIndex # - # Listener port # - def addListenerClient ( cls, listener ): """ Whenever a new tree view is created, we will add a copy of its listener so that it can be notified of attribute or shape changes """ treeListenerObj = lx. toolTips = def _init_ ( self, node = None, curIndex = 0 ): if node is None : node = _theTree self. # !/usr/bin/env python import lx import lxifc SERVERNAME = 'WhiskyTreeView' # - # Node styles # - fTREE_VIEW_ITEM_ATTR = 0x00000001 fTREE_VIEW_ITEM_EXPAND = 0x00000002 fTREE_VIEW_ATTR_EXPAND = 0x00000004 fTREE_VIEW_ROWCOLOR_ORANGE = 0x00050000 fTREE_VIEW_ROWCOLOR_RED = 0x00010000 # - # Generic layer node object that represents each entry in the tree # - class TreeNode ( object ): _Primary = None def _init_ ( self, name, price =- 1.0, parent = None ): self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |