File: //proc/2/root/proc/3/cwd/usr/lib/python2.4/Demo/curses/ncurses.pyo
mņ
=5Dc @ sr d k Z d k l Z d d Z d Z d Z d Z d Z d Z d Z d Z
e i e
d S(
N( s panelc C s! | d j o
t } n | i S( N( t wint Nonet stdscrt getch( R ( ( t) /usr/lib/python2.4/Demo/curses/ncurses.pyt wGetchar s
c C s t d S( N( R ( ( ( R t Getchar s c C s) t d j o t n t i t d S( Ni ( t nap_msecR t cursest napms( ( ( R t wait_a_while s
c C s2 t i t i d d t i t i | d S( Ni i ( R t moveR t LINESt clrtoeolt addstrt text( R ( ( R t saywhat s
c C s³ t i | | | | } t i | } t i
ob | t i j o
t i
} n
t i } | } t i | | | | i t d t i | n | i t d t i | S( Nt ( R t newwint rowst colst tlyt tlxR t panelt new_panelt pant
has_colorst colort
COLOR_BLUEt COLOR_WHITEt fgt COLOR_BLACKt bgt init_pairt bkgdsett ordt
color_pairt A_BOLD( R R R R R R R R R ( ( R t mkpanel s
#c C s t i t i d S( N( R t
update_panelsR t doupdate( ( ( R t pflush0 s
c C sĄ | i } | i d } | i d d | i d | | i | i | i \ } } xV t d | d D]A } x8 t d | d D]# } | i | | | i | q Wqw Wd S( Ni s -pan%c-i ( R t windowR t userptrt numR R R
t boxt getmaxyxt maxyt maxxt ranget yt xt addch( R R0 R/ R R, R2 R3 ( ( R t
fill_panel4 s
c C s8 | a d a d d d d d d g a t i xT t d t i d D]<