You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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.
The text was updated successfully, but these errors were encountered:
SourasishBasu
changed the title
Button images don’t change as expected
Site A Button images don’t change as expected
Oct 1, 2023
ritankar56
added a commit
to ritankar56/octops
that referenced
this issue
Oct 2, 2023
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 thesiteA.py
file under theSiteAScreen
class. The current state of the button image is controlled by the if-else conditions within thewidget.source
variable of thechange_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)
Checklist
The text was updated successfully, but these errors were encountered: