%PDF- %PDF-
Direktori : /snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/ |
Current File : //snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/tuicontroller.cpython-310.pyc |
o K��^� � @ sf d dl mZ d dlZd dlZd dlmZ e�d�ZG dd� de�Z G dd� de�Z G d d � d e�ZdS )� )�abstractmethodN)�BaseControllerzsubiquitycore.tuicontrollerc @ s e Zd ZdZdS )�Skipz?Raise this from a controller's make_ui method to skip a screen.N)�__name__� __module__�__qualname__�__doc__� r r �3/usr/share/subiquity/subiquitycore/tuicontroller.pyr s r c s^ e Zd ZdZ� fdd�Zedd� �Zedd� �Zedd � �Z d d� Z dd d�Zdd� Z� Z S )� TuiControllerzBase class for controllers.c s* t � �|� |j| _|j�| ji �| _d S �N)�super�__init__�ui�answers�get�name)�self�app�� __class__r r r s zTuiController.__init__c C s d S r r �r r r r �cancel$ s zTuiController.cancelc C s, | j jj}t|t�r|j}t|t�s || u S r )r �controllers�cur� isinstance�RepeatedController�orig)r �instr r r �showing( s �zTuiController.showingc C � dS )z)Return the view for this controller's UI.Nr r r r r �make_ui/ � zTuiController.make_uic C r )a Stop running this controller's UI. This method doesn't actually need to remove this controller's UI as the next one is about to replace it, it's more of a hook to stop any background tasks that can be stopped when the UI is not running. Nr r r r r �end_ui3 r"