confirm - 2.6
'confirm' is a feature that lets you request a confirmation from the user of your project for a critical(or other) action.
this function returns False, True or None depending on whether the user answers yes, no or opps, ignore it.
from confirm import Confirm
response = Confirm.get('Are you sure you want to exit without saving ?','WARNING ...')
add width(width of the window) arg with a wider window, you can display more text such as game rules or license from toolbox.EasyGame import confirm confirm(label='...', title='', mode=3, fontsize=16,width=320)
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.