You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the select() function, the provided path cannot necessarily be used for a subsequent select() (or getattr(), etc) and will not properly select any items.
This appears to arise because the XPATH index syntax is slightly different than the path_to syntax use different semantics.
Specifically, the current to_path syntax uses the index of the element in the child widgets list.
However, the XPATH syntax uses the index into the list of previously filtered items. This means that if any items are filtered out, the index used by XPATH and the index into the Kivy child list are no longer equivalent.
The text was updated successfully, but these errors were encountered:
This becomes problematic whenever the children of a widget have different types. The fix here is to filter the path_to children list to include only children that have the same class as the current widget.
Hi, thanks for posting the idea for a fix! I've noticed that there was no implementation for it and since I needed this feature I went ahead and implemented the fix with addition of a small correction.
When using the
select()
function, the provided path cannot necessarily be used for a subsequentselect()
(orgetattr()
, etc) and will not properly select any items.This appears to arise because the XPATH index syntax is slightly different than the
path_to
syntax use different semantics.Specifically, the current
to_path
syntax uses the index of the element in the child widgets list.telenium/telenium/mods/telenium_client.py
Lines 107 to 114 in 52e30ba
However, the XPATH syntax uses the index into the list of previously filtered items. This means that if any items are filtered out, the index used by XPATH and the index into the Kivy child list are no longer equivalent.
The text was updated successfully, but these errors were encountered: