+
    ¿Ìjt?  ã                   óò   € R t  ^RIHt ^RIHt ^RIHt ^RIHt	 RR ltRR ltRR ltRR	 ltRR
 ltRR ltRR ltRR ltRR ltRR ltRR ltR#   ]
]]3 d    ^ RIHt ^ RIHt ^ RIt^ RIt	 LYi ; i)zn

.. moduleauthor:: easygui developers and Stephen Raymond Ferg
.. default-domain:: py
.. highlight:: python

©Ú__fillablebox)Ú	buttonbox)Útext_box)ÚutilsNc           	     ó$   € \        V VVVVVR7      # )a  
The ``ynbox()`` offers a choice of Yes and No, and returns either ``True`` or ``False``.

    import easygui
    result = easygui.ynbox('Is a hot dog a sandwich?', 'Hot Dog Question')
    if result == True:
        easygui.msgbox('That is an interesting answer.')
    else:
        easygui.msgbox('Well, that is your opinion.')

:param msg: the msg to be displayed
:type msg: str
:param str title: the window title
:param list choices: a list or tuple of the choices to be displayed
:param str image: Filename of image to display
:param str default_choice: The choice you want highlighted
    when the gui appears
:param str cancel_choice: If the user presses the 'X' close, which
  button should be pressed

:return: True if 'Yes' or dialog is cancelled, False if 'No'
©ÚmsgÚtitleÚchoicesÚimageÚdefault_choiceÚcancel_choice©Úboolboxr   s   &&&&&&Úu/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/easygui/boxes/derived_boxes.pyÚynboxr      ó"   € ô2 �sØØ"ØØ"0Ø!.ô0ð 0ó    c           	     ó$   € \        V VVVVVR7      # )a(  
The ``ccbox()`` function offers a choice of Continue and Cancel, and returns either True (for continue) or False (for cancel).

    import easygui
    msg = "Do you want to continue?"
    title = "Please Confirm"
    if easygui.ccbox(msg, title):  # Show a Continue/Cancel dialog.
        pass  # User chose Continue.
    else:  # User chose Cancel.
        sys.exit()

:param str msg: the msg to be displayed
:param str title: the window title
:param list choices: a list or tuple of the choices to be displayed
:param str image: Filename of image to display
:param str default_choice: The choice you want highlighted
  when the gui appears
:param str cancel_choice: If the user presses the 'X' close,
  which button should be pressed

:return: True if 'Continue' or dialog is cancelled, False if 'Cancel'
r   r   r   s   &&&&&&r   Úccboxr   B   r   r   c           	     ó°   € \        V4      ^8w  d   \        R4      h\        V VVVVVR7      pWb^ ,          8X  d   R# Wb^,          8X  d   R# Vf   R# Q R4       h)a°  
The ``boolbox()`` (boolean box) displays two buttons. Returns returns
``True`` if the first button is chosen. Otherwise returns ``False``.

    import easygui
    message = "What do they say?"
    title = "Romantic Question"
    if easygui.boolbox(message, title, ["They love me", "They love me not"]):
        easygui.msgbox('You should send them flowers.')
    else:
        easygui.msgbox('It was not meant to be.')

:param str msg: The message shown in the center of the dialog window.
:param str title: The window title text.
:param list choices: A list or tuple of strings for the buttons' text.
:param str image: The filename of an image to display in the dialog window.
:param str default_choice: The text of the default selected button.
:param str cancel_choice: If the user presses the 'X' close, which button
  should be pressed
:return: `True` if first button pressed or dialog is cancelled, `False`
  if second button is pressed.
zFboolbox() takes exactly 2 choices!  Consider using indexbox() instead.r   TFNz)The user selected an unexpected response.)ÚlenÚAssertionErrorr   )r	   r
   r   r   r   r   Úreplys   &&&&&& r   r   r   g   sl   € ô2 ˆ7ƒ|�qÔÜØTó
ð 	
ô ˜#Ø!Ø%Ø!Ø%3Ø$1ô3€Eð ˜•
ÔÙØ	˜!•*Ô	ÙØ	ŠÙà=Ð=Ó=ˆ5r   c           	     ó¤   € \        V VVVVVR7      pVf   R# \        V4       F  w  rxWh8X  g   K  Vu # 	  RP                  Wb4      p \        V 4      h)a¬  
The ``indexbox()`` function displays a set of buttons, and returns the
index of the selected button. For example, if you invoked index box with
three choices (A, B, C), indexbox would return 0 if the user picked A, 1
if he picked B, and 2 if he picked C.

    import easygui
    result = easygui.indexbox('Which door do you choose?', 'Win Prizes!', choices=['Door 1', 'Door 2', 'Door 3'])
    if result == 2:
        easygui.msgbox('You win a new car!')
    else:
        easygui.msgbox('Better luck next time.')

:param str msg: the msg to be displayed
:param str title: the window title
:param list choices: a list or tuple of the choices to be displayed
:param str image: Filename of image to display
:param str default_choice: The choice you want highlighted
  when the gui appears
:param str cancel_choice: If the user presses the 'X' close,
  which button should be pressed
:return: the index of the choice selected, starting from 0
r   NzWThere is a program logic error in the EasyGui code for indexbox.
reply={0}, choices={1})r   Ú	enumerateÚformatr   )	r	   r
   r   r   r   r   r   ÚiÚchoices	   &&&&&&   r   Úindexboxr    ™   sh   € ô4 ˜#Ø!Ø%Ø!Ø%3Ø$1ô3€Eð ‚}ÙÜ˜wÖ'‰	ˆØŽ?ØŠHñ (ð3ß39±6Øó4ð ô ˜Ó
Ðr   c           	     ó|   € \        V\        P                  4      '       g   \        R4      h\	        V VV.VVVR7      # )a2  
The ``msgbox()`` function displays a text message and offers an OK
button. The message text appears in the center of the window, the title
text appears in the title bar, and you can replace the "OK" default text
on the button. Here is the signature::

    def msgbox(msg="(Your message goes here)", title="", ok_button="OK"):
        ....

The clearest way to override the button text is to do it with a keyword
argument, like this::

    easygui.msgbox("Backup complete!", ok_button="Good job!")

Here are a couple of examples::

    easygui.msgbox("Hello, world!")

:param str msg: the msg to be displayed
:param str title: the window title
:param str ok_button: text to show in the button
:param str image: Filename of image to display
:param tk_widget root: Top-level Tk widget
:return: the text of the ok_button
z4The 'ok_button' argument to msgbox must be a string.r   )Ú
isinstanceÚutÚ
basestringr   r   )r	   r
   Ú	ok_buttonr   Úroots   &&&&&r   Úmsgboxr'   Ç   sI   € ô6 �i¤§¡×/Ò/ÜØBóDð 	Dô ˜Ø Ø'˜[Ø Ø$-Ø#,ô.ð .r   c                ó.   € V e   Vf   V # RpV! V 4      pV# )a’  
Attempts to convert input_value to type new_type and throws error if it can't.

If input_value is None, None is returned
If new_type is None, input_value is returned unchanged
:param input_value: Value to be converted
:param new_type: Type to convert to
:param input_value_name: If not None, used in error message if input_value cannot be converted
:return: input_value converted to new_type, or None
z"value {0}:{1} must be of type {2}.© )Úinput_valueÚnew_typeÚinput_value_nameÚexception_stringÚ	ret_values   &&&  r   Úconvert_to_typer/   î   s1   € ð Ò˜hÒ.ØÐð 	-ð á˜Ó%€Ið Ðr   c                óâ  € V '       g   RP                  W44      p \        V\        R4      p\        V\        R4      p\        V\        R4      p \        WW%VR7      pVf   R#  \        V\        4      pTe$   Ys8  d   \        R	P                  T4      R4       KM  Te$   Yt8”  d   \        R
P                  T4      R4       Kt   T#   \         d     \        RP                  T4      R4        K   i ; i)a¥  
Show a box in which a user can enter an integer.

In addition to arguments for msg and title, this function accepts
integer arguments for "default", "lowerbound", and "upperbound".

The default, lowerbound, or upperbound may be None.

When the user enters some text, the text is checked to verify that it
can be converted to an integer between the lowerbound and upperbound.

If it can be, the integer (not the text) is returned.

If it cannot, then an error msg is displayed, and the integerbox is
redisplayed.

If the user cancels the operation, None is returned.

:param str msg: the msg to be displayed
:param str title: the window title
:param int default: The default value to return
:param int lowerbound: The lower-most value allowed
:param int upperbound: The upper-most value allowed
:param str image: Filename of image to display
:param tk_widget root: Top-level Tk widget
:return: the integer value entered by the user

z$Enter an integer between {0} and {1}ÚdefaultÚ
lowerboundÚ
upperbound)r   r&   Nz4The value that you entered:
	"{}"
is not an integer.ÚErrorz>The value that you entered is less than the lower bound of {}.zAThe value that you entered is greater than the upper bound of {}.)r   r/   ÚintÚenterboxÚ
ValueErrorr'   )r	   r
   r1   r2   r3   r   r&   r   s   &&&&&&& r   Ú
integerboxr8     sö   € ÷> Ø4×;Ñ;Øó$ˆô
 ˜g¤s¨IÓ6€GÜ  ¬S°,Ó?€JÜ  ¬S°,Ó?€Jà
Ü˜ WÀÔEˆØŠ=Ùð	Ü# E¬3Ó/ˆEð Ò!ØÔ!ÜÐW×^Ñ^Ð_iÓjÐlsÔtÙØÒ!ØÔ!ÜÐZ×aÑaÐblÓmÐovÔwÙð 	Ø€Løô ô 	ÜÐL×SÑSÐTYÓZÐ\cÔdÚð	ús   Á#C Ã&C.Ã-C.c           	     ód   € \        WVRWER7      pV'       d   V'       d   VP                  4       pV# )a¼  
Show a box in which a user can enter some text.

You may optionally specify some default text, which will appear in the
enterbox when it is displayed.

Example::

    import easygui
    reply = easygui.enterbox('Enter your life story:')
    if reply:
        easygui.msgbox('Thank you for your response.')
    else:
        easygui.msgbox('Your response has been discarded.')

:param str msg: the msg to be displayed.
:param str title: the window title
:param str default: value returned if user does not change it
:param bool strip: If True, the return value will have
  its whitespace stripped before being returned
:return: the text that the user entered, or None if they cancel
  the operation.
N)r1   Úmaskr   r&   )r   Ústrip)r	   r
   r1   r;   r   r&   Úresults   &&&&&& r   r6   r6   P  s-   € ô2 Ø˜G¨$°eôH€Fç—%Ø—‘“ˆØ€Mr   c           	     ó    € \        WVRW4R7      # )aS  
Show a box in which a user can enter a password.
The text is masked with asterisks, so the password is not displayed.

:param str msg: the msg to be displayed.
:param str title: the window title
:param str default: value returned if user does not change it
:return: the text that the user entered, or None if they cancel
  the operation.
Ú*)r:   r   r&   r   )r	   r
   r1   r   r&   s   &&&&&r   Úpasswordboxr?   p  s   € ô ˜ W°3Ø$ô1ð 1r   c                ó\   € Vf   RpV f   Rp \        W\        P                  ! 4       4       R# )a�  
Display a box that gives information about
an exception that has just been raised.

The caller may optionally pass in a title for the window, or a
msg to accompany the error information.

Note that you do not need to (and cannot) pass an exception object
as an argument.  The latest exception will automatically be used.

:param str msg: the msg to be displayed
:param str title: the window title
:return: None

NzError Reportz1An error (exception) has occurred in the program.)Úcodeboxr#   Úexception_format)r	   r
   s   &&r   ÚexceptionboxrC   ƒ  s+   € ð  ‚}ØˆØ
‚{ØAˆäˆCœ×+Ò+Ó-Ö.r   c                ó4   € \         P                  ! WVRR7      # )aw  
Display some text in a monospaced font, with no line wrapping.
This function is suitable for displaying code and text that is
formatted using spaces.

The text parameter should be a string, or a list or tuple of lines to be
displayed in the textbox.

:param str msg: the msg to be displayed
:param str title: the window title
:param str text: what to display in the textbox
T)rA   )ÚtbÚtextbox)r	   r
   Útexts   &&&r   rA   rA   Ÿ  s   € ô �:Š:�c $°Ô5Ð5r   )úShall I continue?Ú )ú	[<F1>]Yesú[<F2>]NoNrJ   rK   )rH   rI   )z
C[o]ntinuezC[a]ncelNÚContinueÚCancel)rH   rI   )ú[T]rueú[F]alseNrN   rO   )rH   rI   )ÚYesÚNoNrP   rQ   )z(Your message goes here)rI   ÚOKNN)N)Ú rI   Né    éc   NN)zEnter something.rI   rS   TNN)zEnter your password.rI   rS   NN)NN)rS   rI   rS   )Ú__doc__Úfillable_boxr   Ú
button_boxr   rS   r   rE   r   r#   ÚSystemErrorr7   ÚImportErrorr   r   r   r    r'   r/   r8   r6   r?   rC   rA   r)   r   r   Ú<module>r[      s~   ðñð	Ý+Ý%Ý Ýô 0ôJ0ôJ,>ôd(ô\$.ôNô4=ôPô@1ô&/ö86øðc 	�Z Ð-ô Ý*Ý$ÛÝð	ús   „A ÁA6Á5A6