| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/curses/ |
Upload File : |
Ñò
ÉÉŽJc @ sv d Z d d k Z d d k Z d „ Z d d d „ ƒ YZ e d j o+ d „ Z e i e ƒ Z d Ge e ƒ GHn d S(
s: Simple textbox editing widget with Emacs-like keybindings.iÿÿÿÿNc C sð | i | d | t i | | d ƒ | i | | d t i | | d ƒ | i | | d t i | | d ƒ | i | d | t i | | d ƒ | i | | t i ƒ | i | | t i ƒ | i | | t i ƒ | i | | t i ƒ 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.6/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 | | _ | | _ | i ƒ \ | _ | _ | i d | _ | i d | _ d | _ d | _ | i d ƒ d S( Ni ( R
t insert_modet getmaxyxt maxyt maxxt stripspacest Nonet lastcmdt keypad( t selfR
R ( ( s$ /usr/lib/python2.6/curses/textpad.pyt __init__+ s c C s | i } xq t oi t i i | i i | | ƒ ƒ t i i j o t | i | d ƒ } Pn | d j o 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.6/curses/textpad.pyt _end_of_line5 s .
c C sá | i i ƒ \ } } | | i j p | | i j o¨ | i o | i i ƒ } n y | i i | ƒ Wn t i j
o n X| i oP | i i ƒ \ } } t i i
| ƒ o$ | i | ƒ | i i | | ƒ 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.6/curses/textpad.pyR&