Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/alt/python36/lib64/python3.6/idlelib/__pycache__/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/alt/python36/lib64/python3.6/idlelib/__pycache__/window.cpython-36.pyc

3

� f
�@sbddlTGdd�d�Ze�ZejZejZejZGdd�de�Zedkr^ddl	m
Z
e
dd	d
�dS)�)�*c@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�
WindowListcCsi|_g|_dS)N)�dict�	callbacks)�self�r�3/opt/alt/python36/lib64/python3.6/idlelib/window.py�__init__szWindowList.__init__cCs|j|j�||jt|�<dS)N)Z
after_idle�call_callbacksr�str)r�windowrrr�add
szWindowList.addcCs2y|jt|�=Wntk
r$YnX|j�dS)N)rr�KeyErrorr
)rrrrr�deletes
zWindowList.deletec
Cs�g}xL|jD]B}|j|}y|j�}Wntk
r<wYnX|j|||f�qW|j�x"|D]\}}}|j||jd�q`WdS)N)ZlabelZcommand)r�	get_title�TclError�append�sortZadd_command�wakeup)rZmenu�list�keyr�titlerrr�add_windows_to_menus
zWindowList.add_windows_to_menucCs|jj|�dS)N)rr)r�callbackrrr�register_callback#szWindowList.register_callbackcCs*y|jj|�Wntk
r$YnXdS)N)r�remove�
ValueError)rrrrr�unregister_callback&szWindowList.unregister_callbackcCsHxB|jD]8}y
|�Wqtj�\}}}td|d|�YqXqWdS)Nz&warning: callback failed in WindowList�:)r�sys�exc_info�print)rr�t�v�tbrrrr
,s
zWindowList.call_callbacksN)
�__name__�
__module__�__qualname__r	r
rrrrr
rrrrrs
rc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�ListedToplevelcKs"tj|||�tj|�||_dS)N)�Toplevelr	�registryr
�focused_widget)rZmaster�kwrrrr	>s
zListedToplevel.__init__cCs&tj|�tj|�tjs"|j�dS)N)r*rr)�destroyr�quit)rrrrr-Cs

zListedToplevel.destroycCstj�dS)N)r*r
)rrrrr�update_windowlist_registryKsz)ListedToplevel.update_windowlist_registrycCs|j�S)N)Zwm_title)rrrrrNszListedToplevel.get_titlecCsLy2|j�dkr|j�|j�|j�|jj�Wntk
rFYnXdS)NZiconic)Zwm_stateZwm_withdrawZwm_deiconifyZtkraiser+Z	focus_setr)rrrrrRszListedToplevel.wakeupN)r%r&r'r	r-r/rrrrrrr(<s
r(�__main__)�mainzidlelib.idle_test.test_window�)�	verbosityN)Ztkinterrr*rrrr)r(r%Zunittestr1rrrr�<module>s1#

Hacked By AnonymousFox1.0, Coded By AnonymousFox