+
    ¿ÌjÆ@  ã                   ó  € R t  ^RIHt  ^ RItRR]! 4       ]! 4       RR3R ltRR. . RR3R lt ! R R	]	4      t
 ! R
 R]	4      tR t ! R R4      t]R8X  d   ]! 4        ]! 4        R# R#    ^ RIt Li; i   ^ RIt Lo; i)z€

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

Version |release|
)Úglobal_stateNzFill in values for the fields.Ú Tc           	     óv   € V'       d"   \        WW#RVR7      pVP                  4       pV# \        WW#RVR7      pV# )aÂ  
Same interface as multenterbox.  But in multpassword box,
the last of the fields is assumed to be a password, and
is masked with asterisks.

:param str msg: the msg to be displayed.
:param str title: the window title
:param list fields: a list of fieldnames.
:param list values: a list of field values
:return: String

**Example**

Here is some example code, that shows how values returned from
multpasswordbox can be checked for validity before they are accepted::

    msg = "Enter logon information"
    title = "Demo of multpasswordbox"
    fieldNames = ["Server ID", "User ID", "Password"]
    fieldValues = []  # we start with blanks for the values
    fieldValues = multpasswordbox(msg,title, fieldNames)

    # make sure that none of the fields was left blank
    while 1:
        if fieldValues is None: break
        errmsg = ""
        for i in range(len(fieldNames)):
            if fieldValues[i].strip() == "":
                errmsg = errmsg + ('"%s" is a required field.\n\n' %
                 fieldNames[i])
            if errmsg == "": break # no problems found
        fieldValues = multpasswordbox(errmsg, title,
          fieldNames, fieldValues)

    print("Reply was: %s" % str(fieldValues))

T©Ú	mask_lastÚcallback©ÚMultiBoxÚrun©ÚmsgÚtitleÚfieldsÚvaluesr   r
   ÚmbÚreplys   &&&&&&  Úz/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/easygui/boxes/multi_fillable_box.pyÚmultpasswordboxr      sI   € ÷P Ü�c &¸DØ'ô)ˆð —‘“ˆàˆô �c &¸DØ'ô)ˆð ˆ	ó    c           	     óv   € V'       d"   \        WW#RVR7      pVP                  4       pV# \        WW#RVR7      pV# )a¦  
Show screen with multiple data entry fields.

If there are fewer values than names, the list of values is padded with
empty strings until the number of values is the same as the number
of names.

If there are more values than names, the list of values
is truncated so that there are as many values as names.

Returns a list of the values of the fields,
or None if the user cancels the operation.

Here is some example code, that shows how values returned from
multenterbox can be checked for validity before they are accepted::

    msg = "Enter your personal information"
    title = "Credit Card Application"
    fieldNames = ["Name","Street Address","City","State","ZipCode"]
    fieldValues = []  # we start with blanks for the values
    fieldValues = multenterbox(msg,title, fieldNames)

    # make sure that none of the fields was left blank
    while 1:
        if fieldValues is None: break
        errmsg = ""
        for i in range(len(fieldNames)):
            if fieldValues[i].strip() == "":
                errmsg += ('"%s" is a required field.\n\n' % fieldNames[i])
        if errmsg == "":
            break # no problems found
        fieldValues = multenterbox(errmsg, title, fieldNames, fieldValues)

    print("Reply was: %s" % str(fieldValues))

:param str msg: the msg to be displayed.
:param str title: the window title
:param list fields: a list of fieldnames.
:param list values: a list of field values
:return: String
Fr   r   r   s   &&&&&&  r   Úmultenterboxr   X   sC   € ÷V Ü�c &¸EØ'ô)ˆà—‘“ˆØˆä�c &¸EØ'ô)ˆàˆ	r   c                   óš   a € ] tR t^Žt o RtR tR tR tR t]	R 4       t
]
P                  R 4       t
]
P                  R 4       t
R	 tR
tV tR# )r	   a‚  Show multiple data entry fields

This object does a number of things:

- chooses a GUI framework (wx, qt)
- checks the data sent to the GUI
- performs the logic (button ok should close the window?)
- defines what methods the user can invoke and
  what properties he can change.
- calls the ui in defined ways, so other gui
  frameworks can be used without breaking anything to the user
c                ó°   € W`n         V P                  W44      w  V n        V n        \	        WV P                  V P                  WPP
                  4      V n        R# )aœ  Create box object

Parameters
----------
msg : string
    text displayed in the message area (instructions...)
title : str
    the window title
fields: list
    names of fields
values: list
    initial values
callback: function
    if set, this function will be called when OK is pressed
run: bool
    if True, a box object will be created and returned, but not run

Returns
-------
self
    The MultiBox object
N)r   Úcheck_fieldsr   r   ÚGUItkÚcallback_uiÚui©Úselfr   r   r   r   r   r   s   &&&&&&&r   Ú__init__ÚMultiBox.__init__�   sE   € ð0 !Œà#'×#4Ñ#4°VÓ#DÑ ˆŒ�T”[ä˜ D§K¡K°·±Ø!×#3Ñ#3ó5ˆŽr   c                ó\   € V P                   P                  4        RV n         V P                  # )zStart the ui N)r   r
   r   ©r   s   &r   r
   ÚMultiBox.run¼   s    € à�‰�‰ŒØˆŒØ�{‰{Ðr   c                ó:   € V P                   P                  4        R# )zStop the ui N)r   Ústopr"   s   &r   r%   ÚMultiBox.stopÂ   s   € à�‰�‰Žr   c                ó  € VR8X  d>   W0n         V P                  '       d   V P                  V 4       R# V P                  4        R# VR8X  d   V P                  4        RV n         R# VR8X  d   V P                  4        RV n         R# R# )zLThis method is executed when ok, cancel, or x is pressed in the ui.
        ÚupdateÚxNÚcancel)r   r   r%   )r   r   Úcommandr   s   &&&&r   r   ÚMultiBox.callback_uiÆ   sc   € ð �hÔØ ŒKØ�}�}ˆ}à—‘˜dÖ#à—	‘	–Ø˜Œ^Ø�I‰IŒKØˆDŽKØ˜Ô Ø�I‰IŒKØˆDŽKñ !r   c                ó   € V P                   # )zText in msg Area)Ú_msgr"   s   &r   r   ÚMultiBox.msgÙ   s   € ð �y‰yÐr   c                ó<   € V P                   P                  V4       R # ©N)r   Úset_msg©r   r   s   &&r   r   r/   Þ   s   € à�‰�‰˜Ör   c                ó^   € R V n         V P                  P                  V P                   4       R# )Ú N)r.   r   r2   r"   s   &r   r   r/   â   s   € àˆŒ	Ø�‰�‰˜Ÿ	™	Ö"r   c                óZ  € \        V4      ^ 8X  d   R# \        VR,          4      p\        VR,          4      p\        V4      \        V4      8X  d    W3# \        V4      \        V4      8”  d   V^ \        V4       pW3# \        V4      \        V4      8  d   VP                  R4       K,  W3# )é    N:NNNr5   )ÚlenÚlistÚappend)r   r   r   s   &&&r   r   ÚMultiBox.check_fieldsé   sœ   € Üˆv‹;˜!ÔÙä�f˜Q•i“ˆÜ�f˜Q•i“ˆô ˆv‹;œ#˜f›+Ô%Øð ˆ~Ðô �‹[œ3˜v›;Ô&Ø˜Aœc &›kÐ*ˆFð
 ˆ~Ðô �f“+¤ F£Ô+Ø—‘˜bÖ!àˆ~Ðr   )r.   r   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r
   r%   r   Úpropertyr   ÚsetterÚdeleterr   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r	   r	   Ž   sl   ø‡ € ñò5ò>òòð& ñó ðð 	‡Z�Zñó ðð 	‡[�[ñ#ó ð#÷ð r   r	   c                   ó–   a € ] tR t^ýt o RtR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tR tR tRtV tR# )r   a  This object contains the tk root object.
It draws the window, waits for events and communicates them
to MultiBox, together with the entered values.

The position in wich it is drawn comes from a global variable.

It also accepts commands from Multibox to change its message.
c                óN  € W`n         \        P                  ! 4       V n        V P	                  V4       V P                  \        P                  4       V P                  V4       V P                  W4V4       V P                  4        V P                  ^ ,          P                  4        R# )r7   N)r   ÚtkÚTkÚboxRootÚcreate_rootÚset_posr   Úwindow_positionÚcreate_msg_widgetÚcreate_entryWidgetsÚcreate_buttonsÚentryWidgetsÚfocus_forcer   s   &&&&&&&r   r   ÚGUItk.__init__  su   € à Œä—u’u“wˆŒà×Ñ˜Ôà�‰”\×1Ñ1Ô2à×Ñ˜sÔ#à× Ñ  °Ô;à×ÑÔà×Ñ˜!Õ×(Ñ(Ö*r   c                ón   € V P                   P                  4        V P                   P                  4        R # r1   )rL   ÚmainloopÚdestroyr"   s   &r   r
   Ú	GUItk.run  s"   € Ø�‰×ÑÔØ�‰×ÑÖr   c                óZ   € V P                  4        V P                  P                  4        R # r1   )Úget_posrL   Úquitr"   s   &r   r%   Ú
GUItk.stop   s   € à�‰Œà�‰×ÑÖr   c                óJ   € V P                  V R V P                  4       R7       R# )r)   ©r+   r   N©r   Ú
get_valuesr"   s   &r   Ú	x_pressedÚGUItk.x_pressed&  s   € Ø�‰�d C°·±Ó0AˆÖBr   c                óJ   € V P                  V R V P                  4       R7       R# )r*   r_   Nr`   ©r   Úevents   &&r   Úcancel_pressedÚGUItk.cancel_pressed)  ó   € Ø�‰�d H°T·_±_Ó5FˆÖGr   c                óJ   € V P                  V R V P                  4       R7       R# )r(   r_   Nr`   re   s   &&r   Ú
ok_pressedÚGUItk.ok_pressed,  ri   r   c                ó€   € V P                   P                  VR 7       V P                  ^ ,          P                  4        R# )©ÚtextN)ÚmessageWidgetÚ	configurerS   rT   r3   s   &&r   r2   ÚGUItk.set_msg1  s0   € Ø×Ñ×$Ñ$¨#Ð$Ô.Ø×Ñ˜!Õ×(Ñ(Ö*r   c                ó<   € V P                   P                  V4       R # r1   )rL   Úgeometry)r   Úposs   &&r   rN   ÚGUItk.set_pos5  s   € Ø�‰×Ñ˜cÖ"r   c                óŒ   € V P                   P                  4       pR VP                  R ^4      ^,          ,           \        n        R# )Ú+N)rL   rt   Úsplitr   rO   )r   Úgeoms   & r   r[   ÚGUItk.get_pos8  s3   € ð
 �|‰|×$Ñ$Ó&ˆØ'*¨T¯Z©Z¸¸QÓ-?ÀÕ-BÕ'BŒÖ$r   c                ón   € . pV P                    F"  pVP                  VP                  4       4       K$  	  V# r1   )rS   r:   Úget)r   r   ÚentryWidgets   &  r   ra   ÚGUItk.get_values@  s/   € ØˆØ×,Ô,ˆKØ�M‰M˜+Ÿ/™/Ó+Ö,ñ -àˆr   c                óB  € V P                   P                  R V P                  4       V P                   P                  V4       V P                   P	                  R4       V P                   P                  RV P                  4       V P                   P                  RR4       R# )ÚWM_DELETE_WINDOWÚDialogú<Escape>z-topmostTN)rL   Úprotocolrb   r   ÚiconnameÚbindrg   Ú
attributes)r   r   s   &&r   rM   ÚGUItk.create_rootI  sm   € à�‰×ÑÐ0°$·.±.ÔAØ�‰×Ñ˜5Ô!Ø�‰×Ñ˜hÔ'Ø�‰×Ñ˜* d×&9Ñ&9Ô:Ø�‰×Ñ 
¨DÖ1r   c                óB  € \         P                  ! V P                  R VR7      V n        V P                  P	                  \
        P                  \
        P                  3R7       V P                  P                  \         P                  ^\         P                  RRR7       R# )z4.5i)Úwidthro   ©ÚfontÚ3m)ÚsideÚexpandÚfillÚpadxÚpadyN)rJ   ÚMessagerL   rp   rq   r   ÚPROPORTIONAL_FONT_FAMILYÚPROPORTIONAL_FONT_SIZEÚpackÚTOPÚBOTHr3   s   &&r   rP   ÚGUItk.create_msg_widgetQ  sv   € äŸZšZ¨¯©¸FÈÔMˆÔØ×Ñ×$Ñ$Ü×7Ñ7¼×9\Ñ9\Ð]ð 	%ô 	_à×Ñ×ÑÜ—‘ ¬¯©°dÀð 	 ö 	Gr   c                ó  € . V n         \        V4      ^,
          p\        \        V4      4       EFÒ  pW,          pW%,          p\        P                  ! V P
                  R7      pVP                  \        P                  \        P                  R7       \        P                  ! W†R7      p	V	P                  \        P                  R7       \        P                  ! V^(^R7      p
V P                   P                  V
4       V
P                  \        P                  \        P                   3R7       V
P                  \        P"                  RR7       V P%                  V
4       V
P'                  R	V P(                  4       V
P'                  R
V P*                  4       WT8X  d,   V'       d$   V P                   V,          P                  RR7       Vf   RpV P                   V,          P-                  ^ RP/                  V4      4       EKÕ  	  R# )é   ©Úmaster)rŽ   r�   rn   ©rŽ   )rŠ   Úhighlightthicknessr‹   r�   )rŽ   r‘   z<Return>rƒ   Ú*)ÚshowNr5   z{})rS   r8   ÚrangerJ   ÚFramerL   r–   r—   r˜   ÚLabelÚLEFTÚEntryr:   rq   r   r”   ÚTEXT_ENTRY_FONT_SIZEÚRIGHTÚ
bindArrowsr†   rk   rg   ÚinsertÚformat)r   r   r   r   ÚlastWidgetIndexÚwidgetIndexÚnameÚvalueÚ
entryFrameÚlabelWidgetr~   s   &&&&       r   rQ   ÚGUItk.create_entryWidgetsY  s~  € àˆÔä˜f›+¨�/ˆä ¤ V£×-ˆKØÕ&ˆDØÕ'ˆEÜŸš¨¯©Ô6ˆJØ�O‰O¤§¡¬b¯g©gˆOÔ6ô Ÿ(š( :Ô9ˆKØ×Ñ¤"§'¡'ÐÔ*äŸ(š( :°RÈAÔNˆKØ×Ñ×$Ñ$ [Ô1Ø×!Ñ!Ü"×;Ñ;¼\×=^Ñ=^Ð_ð "ô aà×Ñ¤"§(¡(°ÐÔ6à�O‰O˜KÔ(à×Ñ˜Z¨¯©Ô9Ø×Ñ˜Z¨×)<Ñ)<Ô=ð Ô-ßØ×%Ñ% kÕ2×<Ñ<À#Ð<ÔFð Š}Ø�Ø×Ñ˜kÕ*×1Ñ1Ø�4—;‘;˜uÓ%÷'ó= .r   c                óæ   € \         P                  ! V P                  R 7      V n        V P                  P	                  \         P
                  R7       V P                  4        V P                  4        R# )rœ   rž   N)rJ   r£   rL   ÚbuttonsFramer–   ÚBOTTOMÚcreate_cancel_buttonÚcreate_ok_buttonr"   s   &r   rR   ÚGUItk.create_buttons€  sJ   € ÜŸHšH¨D¯L©LÔ9ˆÔØ×Ñ×Ñ¤B§I¡IÐÔ.à×!Ñ!Ô#Ø×ÑÖr   c           	     ó4  € \         P                  ! V P                  ^RR7      pV P                  V4       VP	                  ^\         P
                  RRRRR7       TpV P                  p\        P                   F  pVP                  RV,          V4       K  	  R# )	r›   ÚOK©Ú	takefocusro   r�   Ú2mÚ1m©r�   rŽ   r‘   r’   ÚipadxÚipadyú<%s>N)
rJ   ÚButtonr´   r©   r–   r¥   rk   r   ÚSTANDARD_SELECTION_EVENTSr†   )r   ÚokButtonÚcommandButtonÚhandlerÚselectionEvents   &    r   r·   ÚGUItk.create_ok_button‡  s~   € ä—9’9˜T×.Ñ.¸!À$ÔGˆØ�‰˜Ô!Ø�‰˜Q¤R§W¡W°4¸dØ ¨ð 	ô 	.ð
 !ˆØ—/‘/ˆÜ*×DÔDˆNØ×Ñ˜v¨Õ6¸Ö@ó Er   c           	     ó4  € \         P                  ! V P                  ^RR7      pV P                  V4       VP	                  ^\         P
                  RRRRR7       TpV P                  p\        P                   F  pVP                  RV,          V4       K  	  R# )	r›   ÚCancelr»   r�   r½   r¾   r¿   rÂ   N)
rJ   rÃ   r´   r©   r–   r¥   rg   r   rÄ   r†   )r   ÚcancelButtonrÆ   rÇ   rÈ   s   &    r   r¶   ÚGUItk.create_cancel_button•  s‚   € ä—y’y ×!2Ñ!2¸aÀhÔOˆØ�‰˜Ô%Ø×Ñ ¬¯©°tÀ$Ø $¨Dð 	ô 	2ð
 %ˆØ×%Ñ%ˆÜ*×DÔDˆNØ×Ñ˜v¨Õ6¸Ö@ó Er   c                óæ   € VP                  R V P                  4       VP                  RV P                  4       VP                  RV P                  4       VP                  RV P                  4       R# )z<Down>z<Up>z<Right>z<Left>N)r†   ÚtabRightÚtabLeft)r   Úwidgets   &&r   r©   ÚGUItk.bindArrows£  sJ   € à�‰�H˜dŸm™mÔ,Ø�‰�F˜DŸL™LÔ)à�‰�I˜tŸ}™}Ô-Ø�‰�H˜dŸl™lÖ+r   c                ó<   € V P                   P                  R 4       R# )z<Tab>N©rL   Úevent_generatere   s   &&r   rÏ   ÚGUItk.tabRight«  s   € Ø�‰×#Ñ# GÖ,r   c                ó<   € V P                   P                  R 4       R# )z<Shift-Tab>NrÔ   re   s   &&r   rÐ   ÚGUItk.tabLeft®  s   € Ø�‰×#Ñ# MÖ2r   )rL   r´   r   rS   rp   N)r<   r=   r>   r?   r@   r   r
   r%   rb   rg   rk   r2   rN   r[   ra   rM   rP   rQ   rR   r·   r¶   r©   rÏ   rÐ   rD   rE   rF   s   @r   r   r   ý   sv   ø‡ € ñò+ò(òòCòHòHò
+ò#òCòò2òGò%'òN òAòAò,ò-÷3ð 3r   r   c                  ór  € R p Rp. ROp. p \        WW#4      pVRJ p. pV'       d   MK\        W#4       F<  w  rgVP                  4       R8X  g   K  VP                  RP	                  V4      4       K>  	  V'       * pV'       g	   V'       d   MRP                  V4      p K’  \        RP	                  V4      4       R# )zEnter your personal informationúCredit Card ApplicationNr5   ú"{}" is a required field.Ú
úReply was: {}©ÚNamezStreet AddressÚCityÚStateÚZipCode)r   ÚzipÚstripr:   r«   ÚjoinÚprint)	r   r   Ú
fieldNamesÚfieldValuesÚ	cancelledÚerrorsr®   r¯   Úall_oks	            r   Údemo1rì   ²  s¥   € Ø
+€CØ%€EÚG€JØ€Kð ä" 3¨zÓGˆØ 4Ð'ˆ	ØˆßØä" :Ö;‘�Ø—;‘;“= BÖ&Ø—M‘MÐ"=×"DÑ"DÀTÓ"JÖKñ  <ð ”ˆçŸØà�i‰i˜ÓŠä	ˆ/×
 Ñ
  Ó
-Ö.r   c                   ó,   a € ] tR tRt o R tR tRtV tR# )ÚDemo2iÏ  c                ó~   € R pRp. ROp. p\        WW4V P                  R7      p\        RP                  V4      4       R# )z0Without flicker. Enter your personal informationrÚ   )r   rÝ   NrÞ   )r   Úcheck_for_blank_fieldsræ   r«   )r   r   r   rç   rè   s   &    r   r   ÚDemo2.__init__Ñ  sA   € Ø@ˆØ)ˆÚKˆ
Øˆä" 3¨zØ,0×,GÑ,GôIˆäˆo×$Ñ$ [Ó1Ö2r   c                ór  € VP                   R J p. pV'       d   M`\        VP                  VP                   4       F<  w  rEVP                  4       R8X  g   K  VP	                  RP                  V4      4       K>  	  V'       * pV'       g	   V'       d   VP                  4        RP                  V4      Vn        R # )Nr5   rÛ   rÜ   )	r   rã   r   rä   r:   r«   r%   rå   r   )r   Úboxré   rê   r®   r¯   rë   s   &&     r   rð   ÚDemo2.check_for_blank_fieldsÛ  sƒ   € à—J‘J $Ð&ˆ	ØˆßØä" 3§:¡:¨s¯z©zÖ:‘�Ø—;‘;“= BÖ&Ø—M‘MÐ"=×"DÑ"DÀTÓ"JÖKñ  ;ð ”ˆçŸØ�H‰HŒJà—)‘)˜FÓ#ˆŽr   © N)r<   r=   r>   r?   r   rð   rD   rE   rF   s   @r   rî   rî   Ï  s   ø‡ € ò3÷$ð $r   rî   Ú__main__)r@   r5   r   ÚtkinterrJ   ÚTkinterÚtupler   r   Úobjectr	   r   rì   rî   r<   rõ   r   r   Ú<module>rû      s¥   ðñðÝðÛð 9Ø¡e£g±e³gØ! tô5ð~ 6¸SØ 2°¸$ô3ôllˆvô lô^r3ˆFô r3òj/÷:$ñ $ð> ˆzÔÙ	„GÙ	†Gñ øðEÝûðÝús   „A+ ‹A6 Á+A3Á6A>