Change words on tkinter Messagebox buttons
I'm using tkinter's "askokcancel" message box to warn the user, with a pop-up, of an irreversible action. from tkinter import Tk Tk().withdraw() from tkinter.messagebox import askokcancel askokcancel("Warning", "This will delete stuff") I'd like to change the text of the 'OK' button (from 'OK') to something like 'Delete', to make it less benign-looking. Is this possible? If not, what is another way to achieve it? Preferably without introducing any dependancies... No, there is no way to change the text of the buttons for the built-in dialogs. Your best option is to create your own dialog. It's