/snap/core22/2437/usr/share/subiquity/subiquitycore/ui/__pycache__
NameSizeModeActions
actionmenu.cpython-310.pyc46350644editdlrm
anchors.cpython-310.pyc15870644editdlrm
buttons.cpython-310.pyc16350644editdlrm
container.cpython-310.pyc126220644editdlrm
form.cpython-310.pyc161050644editdlrm
frame.cpython-310.pyc17130644editdlrm
interactive.cpython-310.pyc36110644editdlrm
selector.cpython-310.pyc79160644editdlrm
spinner.cpython-310.pyc16740644editdlrm
stretchy.cpython-310.pyc56220644editdlrm
table.cpython-310.pyc139490644editdlrm
utils.cpython-310.pyc105380644editdlrm
width.cpython-310.pyc11300644editdlrm
__init__.cpython-310.pyc1790644editdlrm
Edit: /snap/core22/2437/usr/share/subiquity/subiquitycore/ui/__pycache__/interactive.cpython-310.pyc (3611B)
o K^ @sdZddlmZddlZddlZddlmZmZddlm Z ddl m Z e dZ Gdd d eZGd d d eZGd d d eZeedZeedZGdddeZGddde ZGddde ZdS)z Re-usable input widgets )partialN)EditIntEdit) WidgetWrap)Selectorzsubiquitycore.ui.inputc@s*eZdZdZeddZejddZdS) StringEditorzH Edit input class Attaches its result to the `value` accessor. cCs|SN) get_edit_textselfr 4/usr/share/subiquity/subiquitycore/ui/interactive.pyvalue)szStringEditor.valuecCs||dSr) set_edit_text)r rr r r r-sN)__name__ __module__ __qualname____doc__propertyrsetterr r r r r#s  rcs"eZdZdZdfdd ZZS)PasswordEditorz( Password input prompt with masking *cstj|ddS)N)mask)super__init__)r r __class__r r r5szPasswordEditor.__init__)rrrrrr __classcell__r r rr r2srcs*eZdZdZdfdd ZddZZS)RestrictedEditorz+Editor that only allows certain characters.Ncstt||_dSr)rrrecompilematcher)r allowedrr r r<s zRestrictedEditor.__init__cCst|dko |j|duS)N)lenr"match)r chr r r valid_char@szRestrictedEditor.valid_charr)rrrrrr(rr r rr r9srz[^:,=]z[-a-zA-Z0-9_.@+=]c eZdZdZfddZZS)UsernameEditorz, Username input prompt with input rules csX|j|durt||S||d}d}|dkr%t||dur%dSt||S)z+ restrict what chars we allow for username Nrz[a-z_][a-z0-9_-]*F) _command_maprkeypressinsert_text_resultr r&)r sizekeynew_textusernamerr r r-LszUsernameEditor.keypress)rrrrr-rr r rr r*Hsr*cs<eZdZdZdfdd ZeddZejddZZS) IntegerEditorz IntEdit input class rcst|d|_t|jdS)N)default)r_editrr)r r4rr r r[s zIntegerEditor.__init__cCs |jSr)r5rr r r r r_s zIntegerEditor.valuecCs|jt|Sr)r5rstr)r valr r r rcs)r) rrrrrrrrrr r rr r3Xs r3cr))YesNoz Yes/No selector cs tdtdg}t|dS)NYesNo)_rr)r optsrr r rkszYesNo.__init__rr r rr r8hsr8)r functoolsrloggingr urwidrrsubiquitycore.ui.containerrsubiquitycore.ui.selectorr getLoggerlogrrrRealnameEditor EmailEditorr*r3r8r r r r s