[Python] Can I call a function by clicking 'OK' in messagebox.showinfo?

Discussão em 'Python' iniciado por Stack, Dezembro 21, 2024.

  1. Stack

    Stack Membro Participativo

    I have added a message box in my code and I want to call a function defined earlier when clicking the 'OK' button in the message box. Is there any way to achieve this? Thanks in advance.

    messagebox.showinfo('Correct', 'Correct!\nClick OK to continue')

    Continue reading...

Compartilhe esta Página