Afterdie/octops

Site A Button does not function as expected

Opened this issue · 0 comments

Issue Description

Button 5 does not behave properly on button press.

Summary

Button 5 does not react to button press action. Instead Button 4 image and values are changed/accessed upon pressing button 5.

Details

→ On the Site A screen, there will be a 3x3 grid of buttons. The buttons may be pressed to toggle their state between on (green)/off (grey).

→ There might be a situation where a specific button does not behave as intended. While pressing that button instead of toggling its state between green/grey it controls and changes the state of a completely different button. It also prevents you from completing the task if the button is part of the passcode.

→ For Ex:- You need to enter the passcode 3456 but you find pressing 5 returns the value 4 and changes the visual state of button 4 and not itself.

→ Button values and image toggle is controlled by the root.check_product(self, <button_id>) and root.change_img(self, <button_id>) functions under the on_press: parameter within the Button class in the sitea_screen.kv file.

Additional Information

Screenshots (if applicable)

image

Checklist

  • I have searched existing issues to ensure this is not a duplicate.
  • I have provided clear and detailed information about the issue.
  • I have included any necessary screenshots or files.