ó
¬«Y]c           @   sQ   d  d l  Z  d  d l  m Z e d „ Z d „  Z e d k rM e  j e ƒ n  d S(   iÿÿÿÿN(   t   textpadc         C   s[  d \ } } d \ } } | r' d } n d } |  j  | d | d | ƒ |  j  | d | d ƒ t j | | | | ƒ } t j |  | d | d | | | | ƒ |  j ƒ  t j | | ƒ } | j ƒ  }	 |  j  | | d d	 d
 ƒ |  j  t |	 ƒ ƒ |  j  d ƒ |  j  d ƒ |  j	 ƒ  x: t
 d ƒ D], }
 |  j | | d |
 d	 ƒ |  j ƒ  q'Wd  S(   Ni   i   i   s   insert modes   overwrite modes   Use Ctrl-G to end editing (%s).s0   Be sure to try typing in the lower-right corner.i   i    s   Text entered in the box
s   
s   Press any key(   i   i   (   i   i   (   t   addstrt   cursest   newwinR    t	   rectanglet   refresht   Textboxt   editt   reprt   getcht   ranget   movet   clrtoeol(   t   stdscrt   insert_modet   ncolst   nlinest   ulyt   ulxt   modet   wint   boxt   contentst   i(    (    s"   lib/python2.7/test/curses_tests.pyt   test_textpad   s(    	)

c         C   s(   |  j  ƒ  t |  t ƒ t |  t ƒ d  S(   N(   t   clearR   t   Falset   True(   R   (    (    s"   lib/python2.7/test/curses_tests.pyt   main'   s    
t   __main__(   R   R    R   R   R   t   __name__t   wrapper(    (    (    s"   lib/python2.7/test/curses_tests.pyt   <module>
   s
   	