a ze@sPddlmZgdZdZdZdZdZdZdZd Z d Z d Z d Z d Z dZdZdZdZdZdZGdddeZd6ddZd7ddZd8ddZd9ddZd:ddZd;d d!Zdd&d'Zed(krLeded)d*eded)d+eded)d,eded)d-ed.ed)d/ed0ed)d1ed2ed)d3ed4ed)d5dS)?)Dialog)showinfo showwarning showerror askquestion askokcancelaskyesnoaskyesnocancelaskretrycancelerrorinfoZquestionwarningZabortretryignoreokZokcancelZ retrycancelZyesnoZ yesnocancelabortZretryignorecancelZyesnoc@seZdZdZdS)MessageZ tk_messageBoxN)__name__ __module__ __qualname__ZcommandrrF/opt/bitninja-python-dojo/embedded/lib/python3.9/tkinter/messagebox.pyr=srNcKsp|rd|vr||d<|r(d|vr(||d<|r4||d<|r@||d<tfi|}t|trh|rdtStSt|S)NZicontypetitlemessage)rZshow isinstanceboolYESNOstr)rrZ_iconZ_typeoptionsresrrr_showGs   r#cKst||ttfi|SN)r#INFOOKrrr!rrrrVsrcKst||ttfi|Sr$)r#WARNINGr&r'rrrr[srcKst||ttfi|Sr$)r#ERRORr&r'rrrr`srcKst||ttfi|Sr$)r#QUESTIONYESNOr'rrrresrcKst||ttfi|}|tkSr$)r#r*OKCANCELr&rrr!srrrrjsrcKst||ttfi|}|tkSr$)r#r*r+rr-rrrrpsrcKs2t||ttfi|}t|}|tkr*dS|tkSr$)r#r* YESNOCANCELr CANCELrr-rrrr vs r cKst||ttfi|}|tkSr$)r#r( RETRYCANCELRETRYr-rrrr sr __main__ZSpamzEgg Informationz Egg Warningz Egg Alertz Question?ZproceedzProceed?zyes/nozGot it?z yes/no/cancelzWant it?z try againz Try again?)NNNN)NN)NN)NN)NN)NN)NN)NN)NN)Ztkinter.commondialogr__all__r)r%r*r(ZABORTRETRYIGNOREr&r,r1r+r/ZABORTr2ZIGNOREr0rrrr#rrrrrrr r rprintrrrrsJ