Skip to content

Commit

Permalink
WatingOverlay: by default: make the waiting button wait on constructi…
Browse files Browse the repository at this point in the history
…on (more intuitive)
  • Loading branch information
payno committed Aug 28, 2023
1 parent 58a14ea commit 677ae55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/silx/gui/widgets/WaitingOverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self, parent: qt.QWidget) -> None:

self._waitingButton = WaitingPushButton(self)
self._waitingButton.setDown(True)
self._waitingButton.setWaiting(True)
self._waitingButton.setStyleSheet("QPushButton { background-color: rgba(150, 150, 150, 40); border: 0px; border-radius: 10px; }")
self._registerParent(parent)

Expand Down
1 change: 0 additions & 1 deletion src/silx/gui/widgets/test/test_waitingoverlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def test_show(qapp, qapp_utils, widget_parent):

waitingOverlay.hide()
qapp.processEvents()
assert not waitingOverlay._waitingButton.isWaiting()

widget.close()
waitingOverlay.close()
Expand Down

0 comments on commit 677ae55

Please sign in to comment.