Your IP : 216.73.216.213
�
��f c @ s� d Z d g Z d d l m Z m Z m Z m Z m Z m Z d d l m
Z
m Z m Z m
Z
Gd d � d e � Z d d � Z e d k r� e � n d S(
u A 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 ( u Frameu Textu Scrollbaru Packu Gridu Place( u RIGHTu LEFTu Yu BOTHc B s/ | Ee Z d Z d d d � Z d d � Z d S( u ScrolledTextc K sE t | � | _ t | j � | _ | j j d t d t � | j i | j j d 6� t j
| | j | � | j d t d t d d
� | j | j d <t t � j � } t t � j � t t � j � Bt t � j � B} | j | � } xU | D]M } | d d k r� | d k r� | d k r� t | | t | j | � � q� q� Wd S( Nu sideu fillu yscrollcommandu expandu commandi u _u configu configureT( u Frameu frameu Scrollbaru vbaru packu RIGHTu Yu updateu setu Textu __init__u LEFTu BOTHu Trueu yviewu varsu keysu Packu Gridu Placeu
differenceu setattru getattr( u selfu masteru kwu
text_methsu methodsu m( ( u9 /opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu __init__ s 2
(u ScrolledText.__init__c C s
t | j � S( N( u stru frame( u self( ( u9 /opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu __str__( s u ScrolledText.__str__N( u __name__u
__module__u __qualname__u Noneu __init__u __str__( u
__locals__( ( u9 /opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu ScrolledText s c C si d d l m } t d d d d � } | j | t � | j d t d t d d
� | j � | j
� d S( Ni ( u ENDu bgu whiteu heighti
u fillu sideu expandT( u tkinter.constantsu ENDu ScrolledTextu insertu __doc__u packu BOTHu LEFTu Trueu focus_setu mainloop( u ENDu stext( ( u9 /opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu example, s
u exampleu __main__N( u __doc__u __all__u tkinteru Frameu Textu Scrollbaru Packu Gridu Placeu tkinter.constantsu RIGHTu LEFTu Yu BOTHu ScrolledTextu exampleu __name__( ( ( u9 /opt/alt/python33/lib64/python3.3/tkinter/scrolledtext.pyu <module> s ."