D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
python35
/
lib
/
python3.5
/
tkinter
/
__pycache__
/
Filename :
scrolledtext.cpython-35.opt-1.pyc
back
Copy
m��Y � @ 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 � d S) a 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. �ScrolledText� )�Frame�Text� Scrollbar�Pack�Grid�Place)�RIGHT�LEFT�Y�BOTHc @ s+ e Z d Z d d d � Z d d � Z d S)r Nc K sA t | � | _ t | j � | _ | j j d t d t � | j d | j j i � 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 | � } xR | D]J } | d d k r� | d k r� | d k r� t | | t | j | � � q� Wd S)N�side�fillZyscrollcommand�expandTZcommandr �_�configZ configure)r �framer Zvbar�packr r �update�setr �__init__r r Zyview�vars�keysr r r � difference�setattr�getattr)�selfZmaster�kwZ text_meths�methods�m� r �+/opt/python35/lib/python3.5/scrolledtext.pyr s 2 (zScrolledText.__init__c C s t | j � S)N)�strr )r r r r! �__str__( s zScrolledText.__str__)�__name__� __module__�__qualname__r r# r r r r! r 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)Nr )�END�bgZwhiteZheight� r r r T) �tkinter.constantsr'