Skip to content

Site A Button images don’t change as expected #4

@SourasishBasu

Description

@SourasishBasu

Button Images do not change on button press.

Summary

Button images don't toggle between green and grey when pressed and stay grey by default.

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 the button images do not show up as intended. While pressing any button instead of toggling its state between green/grey it remains grey as though we never clicked the button. This prevents you from understanding what button has been clicked and what not.

→ For Ex:- You need to enter the passcode 1762 and you accidentally pressed a wrong button. You have no way of knowing what button has been pressed.

→ Button image toggle is controlled by the root.change_img(self, button, idOG=<button_id>) function in the siteA.py file under the SiteAScreen class. The current state of the button image is controlled by the if-else conditions within the widget.source variable of the change_img function referencing the on.png and off.png for the green and grey images of the buttons respectively. Recheck the condition and fix necessary values within the variable.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions