Multiple selections in Tix Hlist

2005-05-18 Thread theoryboy
I'm trying to implement multiple selection functionality in a Tix Hlist using a control-click. I've bound control-click to a function that uses selection_set to add to the selection, but it doesn't seem to work. Only the last clicked item appears selected (highlighted) in the display and the

Tix hlist and item_exists

2005-05-12 Thread theoryboy
I can't seem to get this function to work. If the item does not exist I get an exception, rather than a return value of false. Here's an example: #!/usr/bin/python from Tix import * root = Tk() listBox = HList(root) item = some item if not listBox.item_exists(item, 0):