curses.window.addch()

window.addch(ch[, attr]) window.addch(y, x, ch[, attr])

Note

A character means a C character (an ASCII code), rather than a Python character (a string of length 1). (This note is true whenever the documentation mentions a character.) The built-in ord() is handy for conveying strings to codes.

Paint character ch at (y, x) with attributes attr, overwriting any character previously painter at that location. By default, the character position and attributes are the current settings for the window object.

doc_python
2016-10-07 17:30:19
Comments
Leave a Comment

Please login to continue.