%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/view.cpython-310.pyc

o

K��^i
�@sndZddlZddlmZmZmZddlmZmZm	Z	ddl
mZddlm
Z
mZe�d�ZGdd	�d	e	�ZdS)
z4 View policy

Contains some default key navigations
�N)�emit_signal�Overlay�Text)�Columns�Pile�
WidgetWrap)�StretchyOverlay)�disabled�
undisabledzsubiquitycore.viewcsFeZdZdd�Zdd�Zdd�Zddd	�Zd
d�Z�fdd
�Z�Z	S)�BaseViewcCsdS)zoHelp for what the user is currently looking at.

        Returns title, documentation (or None, None).
        )NN���selfrr�*/usr/share/subiquity/subiquitycore/view.py�
local_help*szBaseView.local_helpcKs�tdddddd�}d}d|vr t|dt�r |dd	|7<|�|�tdtd
�ft|td
�f||td
�fg�dtd
�fg�}td|t|j	�d�|��|_	dS)
N�center)�relative�<�P�middle�pack)�align�width�	min_width�valign�height�r��)�top_w�bottom_wr)
�dict�
isinstance�int�updaterrrrr	�_w)r�overlay_widget�kw�args�PADDING�toprrr�show_overlay1s,�



�
� 	zBaseView.show_overlaycCs(t|d�|��tt|j�|�|_dS)N�opened)rr,rr	r%)r�stretchyrrr�show_stretchy_overlayKs
zBaseView.show_stretchy_overlayNcCs�|durGd}|j}t|ttf�rEt|dd�}||ur5t|d�|��|dur-|j|_dSt|j�|_dS|}t|j�}t|ttf�sdSdSt|jt�rZt|jj	d�|jj	��t|jj�|_dS)Nr-�closed)
r%r"rr�getattrrr/r r
r-)rr-�	one_above�cur�cur_stretchyrrr�remove_overlayPs(
�
�
zBaseView.remove_overlaycCsdS�Nrr
rrr�cancelfszBaseView.cancelcs>t��||�}|dkrt|jd�r|��dS|��dS|S)N�escr )�super�keypress�hasattrr%r4r6)r�size�key��	__class__rrr9iszBaseView.keypressr5)
�__name__�
__module__�__qualname__rr+r.r4r6r9�
__classcell__rrr=rr(s
r)�__doc__�logging�urwidrrr�subiquitycore.ui.containerrrr�subiquitycore.ui.stretchyr�subiquitycore.ui.utilsr	r
�	getLogger�logrrrrr�<module>s


Zerion Mini Shell 1.0