in reply to Tix HList Help

That is hysterical.

All of these could be solved if I could just figure out a way to get the entry and path using the entry id but I cannot find the function to do so. Is there a HList method to get a entry path using the entry id? Thanks

What id? AFAIK, there are only paths.

Replies are listed 'Best First'.
Re^2: Tix HList Help
by notgeekenough (Novice) on Aug 08, 2009 at 15:40 UTC
    Why is it hysterical? I don't know how it works in perl but in python I would type (assuming row is a MySQLdb cursor)
    entry = row['pkey'] list.add(entry,itemtype=TEXT,text=row['name'] list.item_create(entry,1,text=row['gender'] list.item_create(entry,2,text=row['age']
    Here, entry is what I would refer to as the 'id'. In response to a right click I can have
    sel = list.nearest(event.y_root) list.selection_set(sel) # query db for info using the key sel
    Here, sel is the 'entry' (db primary key) of the nearest 'row' in the list to the right click. This is a good example of what I want to do. I would like to pass to another process the information in the HList corresponding to the entry defined by sel. But to do so I have to query the database. Can I not just retrieve the path?
      Why is it hysterical?

      Because the ironing is delicious.

      Here, entry is what I would refer to as the 'id'.

      Why? Everyone else calls it the path.