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
"""Simple Conway's Game of Life built with Textual | |
Requires: | |
textual >= 3.1 | |
textual_hires_canvas >= 0.7 | |
""" | |
from __future__ import annotations | |
import random |
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
from __future__ import annotations | |
from operator import itemgetter | |
from typing import TYPE_CHECKING, get_args | |
import random | |
from textual.app import App, ComposeResult | |
from textual.box_model import BoxModel | |
from textual.css.styles import RenderStyles | |
from textual._resolve import resolve_box_models |
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
"""Collapsible Panel Module""" | |
from __future__ import annotations | |
from typing import ClassVar | |
from rich.text import Text | |
from textual.app import App, ComposeResult | |
from textual.binding import Binding | |
from textual.containers import Container | |
from textual.events import Leave |
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
from __future__ import annotations | |
import sys | |
from pylatexenc.latex2text import LatexNodes2Text | |
from textual import on | |
from textual.app import App, ComposeResult | |
from textual.widgets import Static, TextArea | |
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
from collections import deque | |
from typing import Self | |
from pyfiglet import figlet_format | |
from rich.color import Color | |
from rich.segment import Segment | |
from rich.style import Style | |
from textual.app import App, ComposeResult | |
from textual.containers import Center | |
from textual.geometry import Region |
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
from __future__ import annotations | |
from dataclasses import dataclass | |
from textual import on | |
from textual.app import App, ComposeResult | |
from textual.containers import ScrollableContainer | |
from textual.events import MouseDown, MouseEvent, MouseMove, MouseUp, Resize | |
from textual.geometry import Offset | |
from textual.message import Message |