/snap/core22/2437/usr/share/subiquity/subiquitycore/ui/__pycache__
Edit: /snap/core22/2437/usr/share/subiquity/subiquitycore/ui/__pycache__/interactive.cpython-310.pyc (3611B)
o
K^
@ s d Z ddlmZ ddlZddlZddlmZmZ ddlm Z ddl
mZ edZ
G dd d eZG d
d deZG dd
d
eZeedZeedZG dd deZG dd de ZG dd deZdS )z Re-usable input widgets
)partialN)EditIntEdit)
WidgetWrap)Selectorzsubiquitycore.ui.inputc @ s* e Zd ZdZedd Zejdd ZdS )StringEditorzH Edit input class
Attaches its result to the `value` accessor.
c C s | S N)
get_edit_textself r 4/usr/share/subiquity/subiquitycore/ui/interactive.pyvalue) s zStringEditor.valuec C s | | d S r )
set_edit_text)r r r r r
r - s N)__name__
__module____qualname____doc__propertyr setterr r r r
r # s
r c s" e Zd ZdZd fdd Z ZS )PasswordEditorz( Password input prompt with masking
*c s t j|d d S )N)mask)super__init__)r r __class__r r
r 5 s zPasswordEditor.__init__)r r r r r r
__classcell__r r r r
r 2 s r c s* e Zd ZdZd fdd Zdd Z ZS )RestrictedEditorz+Editor that only allows certain characters.Nc s t t|| _d S r )r r recompilematcher)r allowedr r r
r <