Window objects, as returned byinitscr() andnewwin() above, have thefollowing methods:
Paint characterch at(y,x) with attributesattr, overwriting any character previously painter at thatlocation. By default, the character position and attributes are thecurrent settings for the window object.
(y,x) with attributesattr, overwriting anything previously on the display.(y,x) with attributesattr, overwriting anything previously on the display.Note:A0 value for any parameter will cause thedefault character to be used for that parameter. Keyword parameterscannot be used. The defaults are listed in this table:
| Parameter | Description | Default value |
|---|---|---|
| ls | Left side | ACS_VLINE |
| rs | Right side | ACS_VLINE |
| ts | Top | ACS_HLINE |
| bs | Bottom | ACS_HLINE |
| tl | Upper-left corner | ACS_ULCORNER |
| tr | Upper-right corner | ACS_URCORNER |
| bl | Bottom-left corner | ACS_BLCORNER |
| br | Bottom-right corner | ACS_BRCORNER |
(y,x).(y,x) of co-ordinates of upper-leftcorner.(y,x) of the height and width ofthe window.-1,-1 if this window has no parent.(y,x) of current cursor position relative to the window's upper-left corner.(y,x) withlengthn consisting of the characterch.(y,x) with attributesattr, moving the line from positionx right by onecharacter.Ifyes is 0, cursor will always be at ``cursor position'' afteran update.
(new_y,new_x).(new_y,new_x).1,getch() will be non-blocking.1, escape sequences will not be timed out.Ifyes is0, after a few milliseconds, an escape sequencewill not be interpreted, and will be left in the input stream as is.
To get fine-grained control over the copied region, the second formofoverlay() can be used.sminrow andsmincol arethe upper-left coordinates of the source window, and the other variablesmark a rectangle in the destination window.
To get fine-grained control over the copied region, the second formofoverwrite() can be used.sminrow andsmincol arethe upper-left coordinates of the source window, the other variablesmark a rectangle in the destination window.
The 6 optional arguments can only be specified when the window is apad created withnewpad(). The additional parameters areneeded to indicate what part of the pad and screen are involved.pminrow andpmincol specify the upper left-hand corner of therectangle to be displayed in the pad.sminrow,smincol,smaxrow, andsmaxcol specify the edges of the rectangle tobe displayed on the screen. The lower right-hand corner of therectangle to be displayed in the pad is calculated from the screencoordinates, since the rectangles must be the same size. Bothrectangles must be entirely contained within their respectivestructures. Negative values ofpminrow,pmincol,sminrow, orsmincol are treated as if they were zero.
= 1])(begin_y,begin_x), and whose width/height isncols/nlines.(begin_y,begin_x), and whose width/height isncols/nlines.By default, the sub-window will extend from thespecified position to the lower right corner of the window.
(y,x) withlengthn consisting of the characterch.| Python Library Reference |