�`^c@s�dZdgZddlmZmZmZmZmZmZddl m
Z
mZmZm
Z
defd��YZd�Zedkr�e�ndS( sA 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.
tScrolledTexti�(tFrametTextt ScrollbartPacktGridtPlace(tRIGHTtLEFTtYtBOTHcBseZdd�Zd�ZRS(cKsKt|�|_t|j�|_|jjdtdt�|ji|jjd6�t j
||j|�|jdtdtdt
�|j|jd<tt �j�}tt�j�tt�j�tt�j�}t|�j|�}xU|D]M}|ddkr�dkr�d kr�||t|j|��q�WdS(
Ntsidetfilltyscrollcommandtexpandtcommandit_tconfigt configure(RtframeRtvbartpackRR tupdatetsetRt__init__RR
tTruetyviewtvarstkeysRRRt
differencetsetattrtgetattr(tselftmastertkwt
text_methstmethodstm((s)/sys/lib/python2.7/lib-tk/ScrolledText.pyRs2
(cCs
t|j�S(N(tstrR(R ((s)/sys/lib/python2.7/lib-tk/ScrolledText.pyt__str__(sN(t__name__t
__module__tNoneRR'(((s)/sys/lib/python2.7/lib-tk/ScrolledText.pyRscCsxddl}ddlm}tdddd�}|j||j�|jdtdtd t �|j
�|j�dS(
Ni�(tENDtbgtwhitetheighti
RRR(t__main__tTkconstantsR+Rtinsertt__doc__RR
RRt focus_settmainloop(R/R+tstext((s)/sys/lib/python2.7/lib-tk/ScrolledText.pytexample,s
R/N(R2t__all__tTkinterRRRRRRR0RRR R
RR6R((((s)/sys/lib/python2.7/lib-tk/ScrolledText.pyt<module>s ."
|