U e5d@shdgZddlmZmZmZmZmZmZddlm Z m Z m Z m Z GdddeZ ddZedkrdedS) ScrolledText)FrameText ScrollbarPackGridPlace)RIGHTLEFTYBOTHc@seZdZdddZddZdS)rNcKst||_t|j|_|jjttd|d|jjit j ||jf||jt t dd|j |jd<tt }ttttBttB}||}|D]4}|ddkr|dkr|d krt||t|j|qdS) N)sidefillZyscrollcommandT)r rexpandZcommandr_ZconfigZ configure)rframerZvbarpackr r updatesetr__init__r r Zyviewvarskeysrrr differencesetattrgetattr)selfZmasterkwZ text_methsmethodsmr,/usr/lib64/python3.8/tkinter/scrolledtext.pyrs    $ zScrolledText.__init__cCs t|jS)N)strr)rrrr __str__)szScrolledText.__str__)N)__name__ __module__ __qualname__rr"rrrr rs cCsHddlm}tddd}||t|jttdd|| dS)Nr)ENDZwhite )ZbgZheightT)rr r) tkinter.constantsr&rinsert__doc__rr r Z focus_setZmainloop)r&Zstextrrr example-s    r+__main__N)__all__Ztkinterrrrrrrr(r r r r rr+r#rrrr s