A Window contains a small isolated part of a Console.
Drawing on the Window draws on the Console.
Making a Window and setting its width or height to None will extend it
to the edge of the console.
|
|
__contains__(self,
position)
Use ((x, y) in console) to check if a position is drawable on this
console.
(Inherited from tdl._MetaConsole) |
source code
|
|
|
|
|
|
iter((x, y), ...)
|
|
|
|
|
|
|
blit(self,
source,
x=0,
y=0,
width=None,
height=None,
srcX=0,
srcY=0)
Blit another console or Window onto the current console.
(Inherited from tdl._MetaConsole) |
source code
|
|
|
|
clear(self,
fgcolor=(0, 0, 0),
bgcolor=(0, 0, 0))
Clears the entire Window. |
source code
|
|
|
|
drawChar(self,
x,
y,
char,
fgcolor=(255, 255, 255),
bgcolor=(0, 0, 0))
Draws a single character. |
source code
|
|
|
|
drawFrame(self,
x,
y,
width,
height,
string,
fgcolor=(255, 255, 255),
bgcolor=(0, 0, 0))
Similar to drawRect but only draws the outline of the
rectangle. |
source code
|
|
|
|
drawRect(self,
x,
y,
width,
height,
string,
fgcolor=(255, 255, 255),
bgcolor=(0, 0, 0))
Draws a rectangle starting from x and y and extending to width and
height. |
source code
|
|
|
|
|
|
(int, (r, g, b), (r, g, b))
|
|
|
(x, y)
|
|
|
(width, height)
|
|
|
|
|
|
|
|
|
iter((x, y), ...)
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|