Skip to content

Commit 93222cf

Browse files
xdri3nSPO
authored andcommitted
(KIOSK) Indicate to the user that the button has been clicked
(cherry picked from commit 79de628)
1 parent fde8b9f commit 93222cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kiosk_interface/views/tab_kiosk.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, app, kiosk):
8383
self.input_search = QLineEdit(self.app.tray.criterion, self)
8484
self.input_search.setPlaceholderText("Search a package by name")
8585

86-
self.button_refresh = QPushButton("Actualiser", self)
86+
self.button_refresh = QPushButton("Refresh", self)
8787
self.button_refresh.clicked.connect(self.on_refresh_clicked)
8888

8989
self.item_custom_packages = []
@@ -173,8 +173,14 @@ def update_last_inventory_display(self):
173173
else:
174174
self.label_last_inventory.setText("Last Inventory : N/A")
175175

176+
self.button_refresh.setEnabled(True)
177+
self.button_refresh.setText("Refresh")
178+
176179
def on_refresh_clicked(self):
177180
"""Method called when the 'update' button is clicked"""
181+
self.button_refresh.setEnabled(False)
182+
self.button_refresh.setText("Refresh in progress...")
183+
178184
self.app.send('{"action":"kioskinterface", "subaction":"initialization"}')
179185
self.app.send('{"action":"kioskinterface", "subaction":"inventory"}')
180186

0 commit comments

Comments
 (0)