tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
M\¬Qc@s˜dZdgZddlmZmZmZmZmZmZddl    m
Z
m Z m 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(c    KsKt|ƒ|_t|jƒ|_|jjdtdtƒ|ji|jjd6ƒt    j
||j||jdt dt dt ƒ|j|jd<tt    ƒjƒ}ttƒjƒttƒjƒttƒjƒ}t|ƒj|ƒ}xU|D]M}|ddkrö|dkrö|d    kröt||t|j|ƒƒqöqöWdS(
Ntsidetfilltyscrollcommandtexpandtcommandit_tconfigt    configure(RtframeRtvbartpackRR    tupdatetsetRt__init__RR
tTruetyviewtvarstkeysRRRt
differencetsetattrtgetattr(tselftmastertkwt
text_methstmethodstm((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/ScrolledText.pyRs2 (cCs t|jƒS(N(tstrR(R ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/ScrolledText.pyt__str__(sN(t__name__t
__module__tNoneRR'(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/ScrolledText.pyRs cCsxddl}ddlm}tddddƒ}|j||jƒ|jdtdtd    t    ƒ|j
ƒ|j ƒdS(
Niÿÿÿÿ(tENDtbgtwhitetheighti
R R R( t__main__t TkconstantsR+Rtinsertt__doc__RR
RRt    focus_settmainloop(R/R+tstext((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/ScrolledText.pytexample,s 
R/N(R2t__all__tTkinterRRRRRRR0RRR    R
RR6R((((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib-tk/ScrolledText.pyt<module> s    ."