class documentation

class AskDialog(pygame.sprite.Sprite):

Constructor: AskDialog(rect)

View In Hierarchy

Shows a text box and handles key events, while rendering them to the UI as typed. Only one line is allowed and RETURN submits the line. Callers should use this like a sprite, then await on the done() future to get the string that was typed.

Method __init__ Undocumented
Method done Undocumented
Instance Variable name Undocumented
Instance Variable rect Undocumented
Method _on_key_down Undocumented
Method _render Undocumented
Instance Variable _doneFuture Undocumented
Instance Variable _draggable Undocumented
Instance Variable _font Undocumented
Instance Variable _paddedText Undocumented
Instance Variable _text Undocumented
def __init__(self, rect):

Undocumented

def done(self):

Undocumented

name: str =

Undocumented

rect =

Undocumented

def _on_key_down(self, event):

Undocumented

def _render(self, screen):

Undocumented

_doneFuture =

Undocumented

_draggable: bool =

Undocumented

_font =

Undocumented

_paddedText =

Undocumented

_text =

Undocumented