Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/lib-tk/ScrolledText.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@s�dZdgZddlmZmZmZmZmZmZddl	m
Z
mZmZm
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.
tScrolledTexti�(tFrametTextt	ScrollbartPacktGridtPlace(tRIGHTtLEFTtYtBOTHcBseZdd�Zd�ZRS(cKsKt|�|_t|j�|_|jjdtdt�|ji|jjd6�t	j
||j|�|jdtdtdt
�|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.pyRscCsxddl}ddlm}tdddd�}|j||j�|jdtdtd	t	�|j
�|j�dS(
Ni�(tENDtbgtwhitetheighti
RRR(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	."	


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].