0x1949 Team - FAZEMRX - MANAGER
Edit File: DistUpgradeViewGtk3.cpython-310.pyc
o S(en� � @ s� d dl Z dZze �dd� d dlmZ dZW n ey1 e �dd� d dlmZ ejjej_Y nw d dlm Z d d lm Z d d lmZ d dlmZ d dlm Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlmZmZ d dlmZmZmZmZ d dlmZ d dl m!Z! d dl"Z"d dl#m"Z$ G dd� dej%j&j'�Z(G dd� dej%j&j)�Z*G dd� de�Z+G dd� de�Z,G dd� de-�Z.G dd� de-�Z/G dd � d ee!�Z0e1d!k�rGe0� Z2e+e2�Z3e,e2�Z4e2�5� �6g d"�� e �7� e�8d � e�9� Z:ej;d d� D ]Z<e:e< j=�re:e< �>� �qe:e< �?� �qe:�@e3e4� e �7� e4�Ad#d$� e2�5� �6g d"�� e2�Bd%d&d'� e2�Cd(g d)� dS dS )*� NF�Vtez2.91)r Tz2.90)�Gtk)�Gdk)�GLib)�GObject)�Pango� )� run_apport�apport_crash)�DistUpgradeView�FuzzyTimeToStr�InstallProgress�AcquireProgress)�get)�SimpleGtkbuilderApp)�gettextc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )�GtkCdromProgressAdapterzi Report the cdrom add progress Subclass this class to implement cdrom add progress reporting c C s |j | _|j| _|| _d S �N)�label_status�status�progressbar_cache�progress�parent��selfr � r �A/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeViewGtk3.py�__init__B s z GtkCdromProgressAdapter.__init__c C sH |r| j �|� | j�|jt| j� � t�� r"t� � t�� sdS dS )z; update is called regularly so that the gui can be redrawn N) r �set_textr �set_fraction�value�float� totalStepsr �events_pending�main_iteration)r �text�stepr r r �updateF s �zGtkCdromProgressAdapter.updatec C � dS )N)F� r �r r r r �ask_cdrom_nameM � z&GtkCdromProgressAdapter.ask_cdrom_namec C r( )NFr r* r r r �change_cdromO r, z$GtkCdromProgressAdapter.change_cdromN)�__name__� __module__�__qualname__�__doc__r r'