Skip to content
Discussion options

You must be logged in to vote

This is rather rough around the edges, but as a very quick and dirty illustration of the sort of approach you might want to take, something like this might be a good starting point:

from __future__ import annotations

from dataclasses import dataclass

from textual import on
from textual.app import App, ComposeResult
from textual.containers import Horizontal
from textual.widgets import Select
from textual.widget import Widget
from textual.message import Message
from textual.reactive import var

CAMPAIGNS = [
    ("One", "1"),
    ("Two", "2"),
    ("Three", "3"),
]

SCENARIOS = {
    "1": [
        ("Foo", "1.1"),
        ("Bar", "1.2"),
        ("Baz", "1.3"),
    ],
    "2": [
        ("…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@erudin
Comment options

@davep
Comment options

@davep
Comment options

Answer selected by erudin
@erudin
Comment options

@erudin
Comment options

@davep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants