0x1949 Team - FAZEMRX - MANAGER
Edit File: ReleaseNotesViewerWebkit.cpython-310.pyc
o S(e� � @ s� d dl mZ ddlmZ dZzddlZe�dd� ddlmZ d ZW n e y1 dd lmZ Y nw G dd� dej �Zed kree� � Ze�dd� e�� Zed�Ze�e� e�e� e�� e�� dS dS )� )�open_url� )�GtkFN�WebKit2z4.0)r T)�WebKitc s, e Zd Z� fdd�Zdd� Zdd� Z� ZS )�ReleaseNotesViewerWebkitc s@ t t| ��� | �|� tr| �d| j� d S | �d| j� d S )Nz decide-policyz$navigation-policy-decision-requested)�superr �__init__�load_uri�webkit2�connect�_on_decide_policy�(_on_navigation_policy_decision_requested)�self� notes_url�� __class__� �F/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.pyr * s ��z!ReleaseNotesViewerWebkit.__init__c C s t |�� � |�� dS )NT)r �get_uri�ignore)r �view�frame�request�action�policyr r r r 4 s zAReleaseNotesViewerWebkit._on_navigation_policy_decision_requestedc C sP |t jjkr&|�� }|�� }|�� }|t jjkr&|�� }t |� |� � dS dS )NTF)r �PolicyDecisionType�NAVIGATION_ACTION�get_navigation_action�get_request�get_navigation_type�NavigationType�LINK_CLICKEDr r r )r �web_view�decision� decision_type�navigation_action�navigation_request�navigation_type�urir r r r : s z*ReleaseNotesViewerWebkit._on_decide_policy)�__name__� __module__�__qualname__r r r � __classcell__r r r r r ) s r �__main__iX i� zdhttp://archive.ubuntu.com/ubuntu/dists/devel/main/dist-upgrader-all/current/ReleaseAnnouncement.html)�ReleaseNotesViewerr � gi.repositoryr r �gi�require_versionr r �ImportError�WebViewr r* �Window�win�set_size_request�ScrolledWindow�scroll�rv�add�show_all�mainr r r r �<module> s, � �