HyperTreeList from SQLite

Hi

I want to populate an hypertreelist from a database (SQLite), but I
dont know how to do it dynamically. In the database I have an account
structure which tells me that counts is the daughter of that, but when
populate the hypertreelist I dont know how to search a node . I have
reviewed in several sites, but I dont found something similar ....
¿someone will have some example of how to do this? I would greatly
appreciate, I am new to Python. thanks

Database Structure

···

-----------------------------------------------------------------------------
Code Int
Description varchar(20)
CMother Int

Thanks!

It should be similar with a HyperTreeList as with a wx.TreeCtrl. In a wx.TreeCtrl it's typically done by checking if an item has children when it is loaded and added to the tree and SetItemHasChildren is called for that tree item. Usually the tree item's data value will be set to something that will help to get the children of that item when they are needed later. Then in a handler for the EVT_TREE_ITEM_EXPANDED for the item the child items will be fetched from the data storage and added as children of the expanded tree item.

···

On 11/1/11 2:29 PM, Edgar wrote:

Hi

I want to populate an hypertreelist from a database (SQLite), but I
dont know how to do it dynamically.

--
Robin Dunn
Software Craftsman