FeedbackButton#

class pyqtgraph.FeedbackButton(*args)[source]#

QPushButton which flashes success/failure indication for slow or asynchronous procedures.

__init__(*args)[source]#
failure(message=None, tip='', limitedTime=True)[source]#

Displays specified message on button and flashes button red to let user know there was an error. If you want the error to be displayed until the user takes an action, set limitedTime to False. Then call self.reset() after the desired action. Threadsafe.

feedback(success, message=None, tip='', limitedTime=True)[source]#

Calls success() or failure(). If you want the message to be displayed until the user takes an action, set limitedTime to False. Then call self.reset() after the desired action.Threadsafe.

processing(message='Processing..', tip='', processEvents=True)[source]#

Displays specified message on button to let user know the action is in progress. Threadsafe.

reset()[source]#

Resets the button to its original text and style. Threadsafe.

success(message=None, tip='', limitedTime=True)[source]#

Displays specified message on button and flashes button green to let user know action was successful. If you want the success to be displayed until the user takes an action, set limitedTime to False. Then call self.reset() after the desired action. Threadsafe.