Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/tkinter/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/tkinter/__pycache__/scrolledtext.cpython-33.pyo

�
��fc@s�dZdgZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
Gdd�de�Zdd�Zedkr�e�nd	S(
uA ScrolledText widget feels like a text widget but also has a
vertical scroll bar on its right.  (Later, options may be added to
add a horizontal bar as well, to make the bars disappear
automatically when not needed, to move them to the other side of the
window, etc.)

Configuration options are passed to the Text widget.
A Frame widget is inserted between the master and the text, to hold
the Scrollbar widget.
Most methods calls are inherited from the Text widget; Pack, Grid and
Place methods are redirected to the Frame widget however.
uScrolledTexti(uFrameuTextu	ScrollbaruPackuGriduPlace(uRIGHTuLEFTuYuBOTHcBs/|EeZdZddd�Zdd�ZdS(uScrolledTextc	KsEt|�|_t|j�|_|jjdtdt�|ji|jjd6�t	j
||j|�|jdtdtdd
�|j|jd<tt	�j�}tt�j�tt�j�Btt�j�B}|j|�}xU|D]M}|ddkr�|dkr�|d	kr�t||t|j|��q�q�WdS(Nusideufilluyscrollcommanduexpanducommandiu_uconfigu	configureT(uFrameuframeu	ScrollbaruvbarupackuRIGHTuYuupdateusetuTextu__init__uLEFTuBOTHuTrueuyviewuvarsukeysuPackuGriduPlaceu
differenceusetattrugetattr(uselfumasterukwu
text_methsumethodsum((u9/opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu__init__s2
(uScrolledText.__init__cCs
t|j�S(N(ustruframe(uself((u9/opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu__str__(suScrolledText.__str__N(u__name__u
__module__u__qualname__uNoneu__init__u__str__(u
__locals__((u9/opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyuScrolledTextscCsiddlm}tdddd�}|j|t�|jdtdtd	d
�|j	�|j
�dS(Ni(uENDubguwhiteuheighti
ufillusideuexpandT(utkinter.constantsuENDuScrolledTextuinsertu__doc__upackuBOTHuLEFTuTrueu	focus_setumainloop(uENDustext((u9/opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyuexample,s
uexampleu__main__N(u__doc__u__all__utkinteruFrameuTextu	ScrollbaruPackuGriduPlaceutkinter.constantsuRIGHTuLEFTuYuBOTHuScrolledTextuexampleu__name__(((u9/opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu<module>s	."