79615906

Date: 2025-05-10 20:54:13
Score: 1.5
Natty:
Report link

When the askyesno pops up, there are 2 buttons: Yes and No, but I want to customize these buttons to "OK" and "Cancel", for example.

Add the Askyesno module import.

Snippet:

def confirm_choice():
    response = askyesno("Are you sure you want to choose this text file?")
    if response:
        print("User chose Yes")
    else:
        print("User chose No")
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Starts with a question (0.5): When the as
  • Low reputation (0.5):
Posted by: Adios Gringo