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?
|