o ­=?hã@sRddlmZgd¢ZdZdZdZdZdZdZd Z d Z d Z d Z d Z dZdZdZdZdZdZGdd„deƒZd6dd„Zd7dd„Zd7dd„Zd7dd„Zd7dd„Zd7d d!„Zd7d"d#„Zd7d$d%„Zd7d&d'„Zed(kr§eded)d*ƒƒeded)d+ƒƒeded)d,ƒƒeded)d-ƒƒed.ed)d/ƒƒed0ed)d1ƒƒed2ed)d3ƒƒed4ed)d5ƒƒdSdS)8é)ÚDialog)ÚshowinfoÚ showwarningÚ showerrorÚ askquestionÚ askokcancelÚaskyesnoÚaskyesnocancelÚaskretrycancelÚerrorÚinfoZquestionZwarningZabortretryignoreÚokZokcancelZ retrycancelZyesnoZ yesnocancelÚabortZretryÚignoreZcancelZyesZnoc@seZdZdZdZdS)ÚMessagez A message boxZ tk_messageBoxN)Ú__name__Ú __module__Ú __qualname__Ú__doc__Zcommand©rrú9/opt/alt/python310/lib64/python3.10/tkinter/messagebox.pyr=srNcKsp|r d|vr ||d<|rd|vr||d<|r||d<|r ||d<tdi|¤Ž ¡}t|tƒr4|r2tStSt|ƒS)NZiconÚtypeÚtitleÚmessager)rZshowÚ isinstanceÚboolÚYESÚNOÚstr)rrZ_iconZ_typeÚoptionsÚresrrrÚ_showGs   r!cKót||ttfi|¤ŽS)zShow an info message)r!ÚINFOÚOK©rrrrrrrVórcKr")zShow a warning message)r!ÚWARNINGr$r%rrrr[r&rcKr")zShow an error message)r!ÚERRORr$r%rrrr`r&rcKr")zAsk a question)r!ÚQUESTIONÚYESNOr%rrrrer&rcKót||ttfi|¤Ž}|tkS)z@Ask if operation should proceed; return true if the answer is ok)r!r)ÚOKCANCELr$©rrrÚsrrrrjórcKr+)z0Ask a question; return true if the answer is yes)r!r)r*rr-rrrrpr/rcKs2t||ttfi|¤Ž}t|ƒ}|tkrdS|tkS)zDAsk a question; return true if the answer is yes, None if cancelled.N)r!r)Ú YESNOCANCELrÚCANCELrr-rrrr vs r cKr+)zDAsk if operation should be retried; return true if the answer is yes)r!r'Ú RETRYCANCELÚRETRYr-rrrr €r/r Ú__main__ZSpamzEgg Informationz Egg Warningz Egg Alertz Question?ZproceedzProceed?zyes/nozGot it?z yes/no/cancelzWant it?z try againz Try again?)NNNN)NN)Ztkinter.commondialogrÚ__all__r(r#r)r'ZABORTRETRYIGNOREr$r,r2r*r0ZABORTr3ZIGNOREr1rrrr!rrrrrrr r rÚprintrrrrÚsN          ÷