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
importurwid# Create a Pile with no focusable element.pile=urwid.Pile([urwid.Divider('-')])
# Add a focusable element.pile.contents.append((urwid.Edit(edit_text=''), ('weight', 1)))
# Send a keypress.pile.keypress((1,), 'enter')
if the focus is changed manually first via pile.set_focus(1), then there is no crash.
what makes this annoying is that if all the elements were added during initialization, then the focusable element (Edit) would have been selected automatically instead.
should Pile handle default focus better ? or should this be documented as WAI ?
The text was updated successfully, but these errors were encountered:
to reproduce:
at this point it crashes
if the focus is changed manually first via
pile.set_focus(1)
, then there is no crash.what makes this annoying is that if all the elements were added during initialization, then the focusable element (Edit) would have been selected automatically instead.
should Pile handle default focus better ? or should this be documented as WAI ?
The text was updated successfully, but these errors were encountered: