awsc.termui.ui.KeyDisplay
- class awsc.termui.ui.KeyDisplay(*args, **kwargs)
Debug control for displaying the key being pressed. Input function of this control does not consume the key.
- Attributes:
border
Returns the border of the control.
corners
Read-only property for calculating the four corners of the block.
height
Read-only property for the height of the block.
inner
Read-only property for calculating the four inner corners of the block.
w_in
Read-only property for the inner width of the block.
width
Read-only property for the width of the block.
Methods
add_block
(block)Adds a new child block to this block.
before_paint
()Hook function for acting on the block before any blocks are painted for the current frame.
bottomright
()Returns the coordinates of the bottom right corner of the block.
clear_blocks
([tag])Removes all blocks with the matching tag from the child blocks of this block.
input
(key)Input handler hook function.
paint
()Hook function for painting the block.
remove_block
(block)Removes a specific block from this block.
reparent
()Shorthand function for removing a Block from its parent and re-adding it.
topleft
()Returns the coordinates of the top left corner of the block.
on_become_frame
- __init__(*args, **kwargs)
Initializes a KeyDisplay object.
Methods
__init__
(*args, **kwargs)Initializes a KeyDisplay object.
add_block
(block)Adds a new child block to this block.
before_paint
()Hook function for acting on the block before any blocks are painted for the current frame.
bottomright
()Returns the coordinates of the bottom right corner of the block.
clear_blocks
([tag])Removes all blocks with the matching tag from the child blocks of this block.
input
(key)Input handler hook function.
on_become_frame
()paint
()Hook function for painting the block.
remove_block
(block)Removes a specific block from this block.
reparent
()Shorthand function for removing a Block from its parent and re-adding it.
topleft
()Returns the coordinates of the top left corner of the block.
Attributes
border
Returns the border of the control.
corners
Read-only property for calculating the four corners of the block.
height
Read-only property for the height of the block.
inner
Read-only property for calculating the four inner corners of the block.
w_in
Read-only property for the inner width of the block.
width
Read-only property for the width of the block.