The Console is the main class of the tdl library.
Any console made from Console is an off-screen console that can be
drawn on and then blit to the root 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
|
|
|
__del__(self)
If the main console is garbage collected then the window will be
closed as well |
source code
|
|
|
|
|
|
|
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=( 255, 255, 255) ,
bgcolor=( 0, 0, 0) )
Clears the entire console. |
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.
(Inherited from tdl._MetaConsole) |
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.
(Inherited from tdl._MetaConsole) |
source code
|
|
|
|
(int, 3-item tuple, 3-item tuple)
|
getChar(self,
x,
y)
Return the character and colors of a cell as (char, fgcolor, bgcolor) |
source code
|
|
(int, int)
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|