[Python] Slow Python terminal text area

Discussão em 'Python' iniciado por Stack, Março 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am creating a personal terminal-based text/code editor using the textual library but whenever i have a text of 10 lines or more , the text area becomes slower , even when the amounf of text isn't that big,

    def compose(self) -> ComposeResult:
    self.filedata_label = Static("No file loaded", name="filename_label", id="filename_label")
    self.text_area = TextArea(
    id="editor",
    show_line_numbers=True,
    )
    self.commands_input = Input(placeholder="Enter command here...", id="commands_input")

    yield self.filedata_label
    yield self.text_area



    I tried updating textual but it didn't help

    Continue reading...

Compartilhe esta Página