| Server IP : 146.190.157.162 / Your IP : 216.73.216.102 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Upload File : |
�
>I�c� � � � d dl mZmZ d dlZd dlZd dlmZ ddlmZ ddl m
Z
G d� dej j j
� � ZdS ) � )�Gtk�GdkN)�gettext� )�
humanize_size)�SimpleGtkbuilderAppc �. � e Zd Zdd�Zd� Zd� Zd� Zd� ZdS ) �GtkAcquireProgress� c �~ � t j � |dd� � }t |d� � | _ d| _ | j j | _ | j j | _ | j j
� d| j � � | j j
| _ | j j | _ | j � |� � | j � � � | j � � � � t( j j � � |dk r"| j � d|�d|��� � d S d S ) N�
gtkbuilderzAcquireProgress.uizubuntu-release-upgraderT�clickedr z<big><b>z
</b></big>
)�os�path�joinr �widgets� _continue�label_fetch_summary�summary�label_fetch_status�status�button_fetch_cancel�connect�on_button_fetch_cancel_clicked�progressbar_fetch�progress�window_fetch�set_transient_for�realize�
get_window�
set_functionsr �
WMFunction�MOVE�
set_markup)�self�parent�datadirr �descr�uifiles �9/usr/lib/python3/dist-packages/DistUpgrade/GtkProgress.py�__init__zGtkAcquireProgress.__init__ s( � �����g�|�5I�J�J��*�6�3L�M�M������ �|�7����l�5���
��(�0�0��t�:� <� <� <���6��
� �L�5�����+�+�F�3�3�3���!�!�#�#�#���$�$�&�&�4�4�S�^�5H�I�I�I��b�=�=��L�#�#�#�%,�W�W�e�e�%5�
6�
6�
6�
6�
6� �=� c �l � | j � d� � | j � � � d S )Nr )r �set_fractionr �show�r% s r* �startzGtkAcquireProgress.start7 s3 � ��
�"�"�1�%�%�%����� � � � � r, c �8 � | j � � � d S )N)r �hider0 s r* �stopzGtkAcquireProgress.stop; s � ����� � � � � r, c � � d| _ d S )NF)r )r% �widgets r* r z1GtkAcquireProgress.on_button_fetch_cancel_clicked>