%PDF- %PDF-
Direktori : /lib/python3/dist-packages/softwareproperties/gtk/__pycache__/ |
Current File : //lib/python3/dist-packages/softwareproperties/gtk/__pycache__/DialogMirror.cpython-312.pyc |
� ;�fZ8 � �, � d dl Z d dlZ ej dd� d dlmZmZ d dlmZ d dlZd dl Z d dl Z d dlmc m Z d dlmZ d dlmZ e ed� � \ ZZ e ed � � \ ZZZZd d lmZ e j8 dk\ rd� Zdd �Z G d� d� Zy)� N�Gtkz3.0)�GObjectr )�gettext)� MirrorTest)�setup_ui� � )�CountryInformation�3c � � | |kD | |k z S �N� )�a�bs �E/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py�<lambda>r - s � ��A��!�a�%�(� � c � � | j |dddd� \ }}}}| j |dddd� \ }} } }| j |� }| j |� } |r| rt ||� S |ry| ry|ry| ry|| k7 rt || � S t ||� S )a sort function for the mirror list: - at first show all custom urls - secondly the separator - show mirrors without a county first (e.g. the automatic mirror url) - third the official mirrors. if available sort the countries r � r � ���)�get�iter_has_child�cmp)�model�iter1�iter2�data�url1�sep1�custom1�mirror1�url2�sep2�custom2�mirror2� has_child1� has_child2s r �sort_mirrorsr) / s� � � (-�y�y���1�a��'C�$�t�T�7�G�',�y�y���1�a��'C�$�t�T�7�G��'�'��.�j��'�'��.�j� �W��T�4�� ����� ���� �z� !��z�:�.�.� ��t�_�r c �` � e Zd Zd� Zd� Zd� Zdd�Zdd�Zdd�Zdd�Z dd �Z d � Zdd�Zd� Z d � Zy)�DialogMirrorc �� � dd�}|| _ t � | _ t | t j j |dd� d�� | j | _ | j j |� | j | _ | j j | j � || _ | j | _ | j | _ | j"