| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/curses/ |
Upload File : |
ó
—|_c @ st d Z d d l Z d d l Z d „ Z d d d „ ƒ YZ e d k rp d „ Z e j e ƒ Z d Ge e ƒ GHn d S(
s: Simple textbox editing widget with Emacs-like keybindings.iÿÿÿÿNc C sð | j | d | t j | | d ƒ | j | | d t j | | d ƒ | j | | d t j | | d ƒ | j | d | t j | | d ƒ | j | | t j ƒ | j | | t j ƒ | j | | t j ƒ | j | | t j ƒ d S( s^ Draw a rectangle with corners at the provided upper-left
and lower-right coordinates.
i N(
t vlinet cursest ACS_VLINEt hlinet ACS_HLINEt addcht ACS_ULCORNERt ACS_URCORNERt ACS_LRCORNERt ACS_LLCORNER( t wint ulyt ulxt lryt lrx( ( s$ /usr/lib/python2.7/curses/textpad.pyt rectangle s %%%%t Textboxc B sJ e Z d Z e d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z
RS( sd Editing widget using the interior of a window object.
Supports the following Emacs-like key bindings:
Ctrl-A Go to left edge of window.
Ctrl-B Cursor left, wrapping to previous line if appropriate.
Ctrl-D Delete character under cursor.
Ctrl-E Go to right edge (stripspaces off) or end of line (stripspaces on).
Ctrl-F Cursor right, wrapping to next line when appropriate.
Ctrl-G Terminate, returning the window contents.
Ctrl-H Delete character backward.
Ctrl-J Terminate if the window is 1 line, otherwise insert newline.
Ctrl-K If line is blank, delete it, otherwise clear to end of line.
Ctrl-L Refresh screen.
Ctrl-N Cursor down; move down one line.
Ctrl-O Insert a blank line at cursor location.
Ctrl-P Cursor up; move up one line.
Move operations do nothing if the cursor is at an edge where the movement
is not possible. The following synonyms are supported where possible:
KEY_LEFT = Ctrl-B, KEY_RIGHT = Ctrl-F, KEY_UP = Ctrl-P, KEY_DOWN = Ctrl-N
KEY_BACKSPACE = Ctrl-h
c C sm | | _ | | _ | j ƒ \ | _ | _ | j d | _ | j d | _ d | _ d | _ | j d ƒ d S( Ni ( R
t insert_modet getmaxyxt maxyt maxxt stripspacest Nonet lastcmdt keypad( t selfR
R ( ( s$ /usr/lib/python2.7/curses/textpad.pyt __init__+ s c C s{ | j } xk t rv t j j | j j | | ƒ ƒ t j j k rY t | j | d ƒ } Pn | d k ri Pn | d } q W| S( su Go to the location of the first blank on the given line,
returning the index of the last non-blank character.i i ( R t TrueR t asciiR
t incht SPt min( R t yt last( ( s$ /usr/lib/python2.7/curses/textpad.pyt _end_of_line5 s -c C sÖ | j j ƒ \ } } | | j k s3 | | j k rÒ | j rN | j j ƒ } n y | j j | ƒ Wn t j k
rx n X| j rÒ | j j ƒ \ } } t j j
| ƒ rÏ | j | ƒ | j j | | ƒ qÏ qÒ n d S( N(
R
t getyxR R R R R R t errorR t isprintt _insert_printable_chart move( R t chR t xt oldcht backyt backx( ( s$ /usr/lib/python2.7/curses/textpad.pyR&