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

Açık
gogsadmin tarafından 1 yıl önce kere açıldı · 0 yorum
gogsadmin 1 yıl önce olarak yorumlandı

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' ```
Giriş yap bu konuşmaya katılmak için.
Etiket Yok
Kilometre Taşı Yok
Atanan Kişi Yok
1 Katılımcı
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.