0

How would I define the command of a given button in a messagebox window? i.e. if I were using askokcanel how would I make the ok do a certain action and cancel another?

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by JoshuaBurleson
0

I figured it out, it's just...kind of strange and ugly.

import tkinter.MessageBox as tkm
if not tkm.askokcancel('Invalid Login', 'Either your username or password was invalid\n\t\tPlease try again'):
   logend()

Edited by JoshuaBurleson: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.