This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from typing import List | |
from textual import events | |
from textual.app import App | |
from textual_inputs import TextInput | |
class CharInput(TextInput): | |
"""A text input that only takes one character""" | |
def __init__(self, **kwargs) -> None: | |
super().__init__(**kwargs) |
OlderNewer