ó
wŰjc           @   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   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/curses_tests.pyt   main'   s    
t   __main__(   R   R    R   R   R   t   __name__t   wrapper(    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/curses_tests.pyt   <module>
   s
   	