#1 Advancing focus (pressing TAB key or arrow keys) crashes when focus is on the Add (tag) button

Open
opened 1 year ago by gogsadmin · 0 comments
gogsadmin commented 1 year ago

When the focus is on the Add tag button, then advancing focus by pressing TAB or arrow keys causes the system to crash

Traceback (most recent call last):
  File "/home/das/scripts/grocery_transactions/grocery_transactions.py", line 134, in <module>
    loop.run()
  File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 287, in run
    self._run()
  File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 385, in _run
    self.event_loop.run()
  File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 790, in run
    self._loop()
  File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 827, in _loop
    self._watch_files[fd]()
  File "/home/das/.local/lib/python3.9/site-packages/urwid/raw_display.py", line 416, in <lambda>
    wrapper = lambda: self.parse_input(
  File "/home/das/.local/lib/python3.9/site-packages/urwid/raw_display.py", line 515, in parse_input
    callback(processed, processed_codes)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 412, in _update
    self.process_input(keys)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 513, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/wimp.py", line 651, in keypress
    return self._current_widget.keypress(size, key)
  File "/home/das/scripts/grocery_transactions/app/activities/TransactionEditor.py", line 108, in keypress
    return super().keypress(size, key)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/decoration.py", line 837, in keypress
    return self._original_widget.keypress((maxcol,), key)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/container.py", line 1626, in keypress
    key = self.focus.keypress(tsize, key)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/container.py", line 2316, in keypress
    key = w.keypress((mc,) + size[1:], key)
  File "/home/das/.local/lib/python3.9/site-packages/urwid/container.py", line 1626, in keypress
    key = self.focus.keypress(tsize, key)
AttributeError: 'Divider' object has no attribute 'keypress'
When the focus is on the Add tag button, then advancing focus by pressing TAB or arrow keys causes the system to crash ``` Traceback (most recent call last): File "/home/das/scripts/grocery_transactions/grocery_transactions.py", line 134, in <module> loop.run() File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 287, in run self._run() File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 385, in _run self.event_loop.run() File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 790, in run self._loop() File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 827, in _loop self._watch_files[fd]() File "/home/das/.local/lib/python3.9/site-packages/urwid/raw_display.py", line 416, in <lambda> wrapper = lambda: self.parse_input( File "/home/das/.local/lib/python3.9/site-packages/urwid/raw_display.py", line 515, in parse_input callback(processed, processed_codes) File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 412, in _update self.process_input(keys) File "/home/das/.local/lib/python3.9/site-packages/urwid/main_loop.py", line 513, in process_input k = self._topmost_widget.keypress(self.screen_size, k) File "/home/das/.local/lib/python3.9/site-packages/urwid/wimp.py", line 651, in keypress return self._current_widget.keypress(size, key) File "/home/das/scripts/grocery_transactions/app/activities/TransactionEditor.py", line 108, in keypress return super().keypress(size, key) File "/home/das/.local/lib/python3.9/site-packages/urwid/decoration.py", line 837, in keypress return self._original_widget.keypress((maxcol,), key) File "/home/das/.local/lib/python3.9/site-packages/urwid/container.py", line 1626, in keypress key = self.focus.keypress(tsize, key) File "/home/das/.local/lib/python3.9/site-packages/urwid/container.py", line 2316, in keypress key = w.keypress((mc,) + size[1:], key) File "/home/das/.local/lib/python3.9/site-packages/urwid/container.py", line 1626, in keypress key = self.focus.keypress(tsize, key) AttributeError: 'Divider' object has no attribute 'keypress' ```
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.