20 lines
663 B
Python
20 lines
663 B
Python
|
# example_008.py
|
||
|
from tkinter.messagebox import askokcancel, askquestion, askretrycancel, askyesno, askyesnocancel
|
||
|
|
||
|
|
||
|
def main():
|
||
|
response = askokcancel('askokcancel (Titel)', 'askokcancel (Nachricht)')
|
||
|
print(response)
|
||
|
response = askquestion('askquestion (Titel)', 'askquestion (Nachricht)')
|
||
|
print(response)
|
||
|
response = askretrycancel('askretrycancel (Titel)', 'askretrycancel (Nachricht)')
|
||
|
print(response)
|
||
|
response = askyesno('askyesno (Titel)', 'askyesno (Nachricht)')
|
||
|
print(response)
|
||
|
response = askyesnocancel('askyesnocancel (Titel)', 'askyesnocancel (Nachricht)')
|
||
|
print(response)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|