HEX
Server: Apache/2.4.65 (Unix) OpenSSL/3.5.5
System: Linux cpanel.ns-taberra.com 5.14.0-681.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 20:19:22 UTC 2026 x86_64
User: asif201 (1002)
PHP: 8.3.0
Disabled: NONE
Upload Files
File: //lib64/gedit/plugins/pythonconsole/__pycache__/__init__.cpython-39.opt-1.pyc
a

A�T`K
�@s�ddlZe�dd�e�dd�e�dd�e�dd�ddlmZmZmZmZmZd	d
lm	Z	d	dl
mZz&ddlZe�
d�e�d�ejZWnd
d�ZYn0Gdd�dejejej�ZdS)�N�Geditz3.0�Peasz1.0�PeasGtk�Gtk)�GObjectrrrr�)�
PythonConsole)�PythonConsoleConfigWidget�geditcCs|S�N�)�srr�2/usr/lib64/gedit/plugins/pythonconsole/__init__.py�<lambda>*�rc@sFeZdZdZejejd�Zdd�Z	dd�Z
dd�Zdd	�Zd
d�Z
dS)
�PythonConsolePlugin)�typecCstj�|�dSr)r�Object�__init__��selfrrrr1szPythonConsolePlugin.__init__cCsPttt|jd�d�|_|j�dd�|j��}|j��|�|jdt	d��dS)N)�__builtins__r
�window)�	namespacezGprint("You can access the main window through 'window' :\n%s" % window)FZGeditPythonConsolePanelzPython Console)
rrrr�_console�eval�get_bottom_panelZshow_allZ
add_titled�_�rZbottomrrr�do_activate4s��

zPythonConsolePlugin.do_activatecCs$|j��|j��}|�|j�dSr)r�stoprr�removerrrr�
do_deactivate>s

z!PythonConsolePlugin.do_deactivatecCsdSrrrrrr�do_update_stateCsz#PythonConsolePlugin.do_update_statecCst|j���}|��Sr)r	Zplugin_infoZget_data_dirZconfigure_widget)rZ
config_widgetrrr�do_create_configure_widgetFsz.PythonConsolePlugin.do_create_configure_widgetN)�__name__�
__module__�__qualname__Z__gtype_name__rZPropertyrZWindowrrrr"r#r$rrrrr,s
r)ZgiZrequire_versionZ
gi.repositoryrrrrrZconsolerZconfigr	�gettext�bindtextdomain�
textdomainrrZWindowActivatableZConfigurablerrrrr�<module>s