HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/DistUpgrade/__pycache__/GtkProgress.cpython-310.pyc
o

>I�c��@s^ddlmZmZddlZddlZddlmZddlmZddl	m
Z
Gdd�dejjj
�ZdS)	�)�Gtk�GdkN)�gettext�)�
humanize_size)�SimpleGtkbuilderAppc@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�GtkAcquireProgress�cCs�tj�|dd�}t|d�|_d|_|jj|_|jj|_	|jj
�d|j�|jj
|_|jj|_|j�|�|j��|j���tjj�|dkrS|j�d||f�dSdS)N�
gtkbuilderzAcquireProgress.uizubuntu-release-upgraderT�clickedr	z<big><b>%s</b></big> 

%s)�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�uifile�r'�9/usr/lib/python3/dist-packages/DistUpgrade/GtkProgress.py�__init__ s$

�



��zGtkAcquireProgress.__init__cCs|j�d�|j��dS)Nr)r�set_fractionr�show�r"r'r'r(�start7szGtkAcquireProgress.startcCs|j��dS)N)r�hider,r'r'r(�stop;szGtkAcquireProgress.stopcCs
d|_dS)NF)r)r"�widgetr'r'r(r>s
z1GtkAcquireProgress.on_button_fetch_cancel_clickedcCs�tjjj�||�|jd}||jkr|j}|jdkr*td�||jt	|j�d�}ntd�||jd�}|j�
|j|jt|j
|j��|j�d|�|j�d�t��r`t��t��sX|jS)	Nrrz<Downloading file %(current)li of %(total)li with %(speed)s/s)�current�total�speedz+Downloading file %(current)li of %(total)li)r1r2z	<i>%s</i>r	)�aptr�base�AcquireProgress�pulse�
current_items�total_items�current_cps�_rr*�
current_bytes�float�total_bytesrr!�set_textr�events_pending�main_iterationr)r"�owner�current_item�status_textr'r'r(r7As6


����
��	�zGtkAcquireProgress.pulseN)r	r	)�__name__�
__module__�__qualname__r)r-r/rr7r'r'r'r(rs
r)�
gi.repositoryrrr4rrr;�utilsr�SimpleGtk3builderApprrr5r6rr'r'r'r(�<module>s