Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Interesting bug" from Bob #302

Open
sde1000 opened this issue Nov 21, 2024 · 0 comments
Open

"Interesting bug" from Bob #302

sde1000 opened this issue Nov 21, 2024 · 0 comments
Labels

Comments

@sde1000
Copy link
Owner

sde1000 commented Nov 21, 2024

When you are entering a delivery and the cursor is over the accept values button, if you press a number key it opens the menu as if you were placing a food order. If you go further the till understandably crashes.

PXL_20241121_134039323

Traceback:

2024-11-21 13:42:41,926 INFO quicktill.managestock
  Stock management popup
2024-11-21 13:43:06,760 ERROR quicktill.till
  Exception caught at top level
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/quicktill/till.py", line 299, in run
    ui_gtk.run(
  File "/usr/lib/python3/dist-packages/quicktill/ui_gtk.py", line 637, in run
    tillconfig.mainloop.iterate()
  File "/usr/lib/python3/dist-packages/quicktill/event_glib.py", line 23, in iterate
    raise self._exc_info[0].with_traceback(
  File "/usr/lib/python3/dist-packages/quicktill/ui_gtk.py", line 102, in _keypress
    ui.handle_raw_keyboard_input(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 108, in handle_raw_keyboard_input
    handle_keyboard_input(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 86, in handle_keyboard_input
    basicwin._focus.hotkeypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 307, in hotkeypress
    self.parent.hotkeypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 307, in hotkeypress
    self.parent.hotkeypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 307, in hotkeypress
    self.parent.hotkeypress(k)
  [Previous line repeated 3 more times]
  File "/usr/lib/python3/dist-packages/quicktill/register.py", line 3357, in hotkeypress
    super().hotkeypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 411, in hotkeypress
    basicwin._focus.keypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/jsonfoodorder.py", line 321, in keypress
    super().keypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 491, in keypress
    super().keypress(k)
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 458, in keypress
    i[0]()
  File "/usr/lib/python3/dist-packages/quicktill/jsonfoodorder.py", line 290, in finish
    self.func(self.orderline)
  File "/usr/lib/python3/dist-packages/quicktill/jsonfoodorder.py", line 501, in insert_item
    self.order.cursor_down()
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 947, in cursor_down
    self.redraw()
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 911, in redraw
    lastitem = self.drawdl()
  File "/usr/lib/python3/dist-packages/quicktill/ui.py", line 833, in drawdl
    self.win.clear(self.y, self.x, self.h, self.w)
  File "/usr/lib/python3/dist-packages/quicktill/ui_gtk.py", line 407, in clear
    ctx = cairo.Context(self._surface)
AttributeError: 'text_window' object has no attribute '_surface'
2024-11-21 13:43:06,818 INFO quicktill.till
  Shutting down
@sde1000 sde1000 added the bug label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant