The tutorial application hangs when choosing an element that has a directory as a previous sibling. E.g. choosing sibling2 in this tree would freeze the application:
parent/
sibling1/
leaf.py
sibling2/
leaf.py
The application hangs because of this infinite loop:
|
if index > 0: |
|
previous = siblings[index - 1] |
|
previous_children = previous.tno_get_children(previous) |
|
while len(previous_children) > 0: |
|
previous = previous_children[-1] |
The tutorial application hangs when choosing an element that has a directory as a previous sibling. E.g. choosing
sibling2in this tree would freeze the application:The application hangs because of this infinite loop:
traitsui/traitsui/extras/demo.py
Lines 963 to 967 in 3e2ce86