This module contains the default implementation of a tool that handles a user’s ability to quit the application.
Base class: Model
The QuitTool is the default implementation of a tool that handles the user’s ability to quit the application.
Ask the user about a number of reasons not quit.
Parameter: | reasons – is the list of reasons not to quit. |
---|---|
Returns: | True if the user wants to quit. |
Ask the user about a single reason to not quit.
Parameter: | reason – is the reason not to quit. |
---|---|
Returns: | True if the user wants to quit. |