Skip to content
Discussion options

You must be logged in to vote

I suspect the issue here, as per the title, isn't down to how and where the DataTable is populated. If we condense the code down to just that:

from textual.app import App, ComposeResult
from textual.widgets import DataTable
from textual.widget import Widget

class HistoryTable(Widget):
    ROWS = [
        ("lane", "swimmer", "country", "time"),
        (4, "Joseph Schooling", "Singapore", 50.39),
        (2, "Michael Phelps", "United States", 51.14),
        (5, "Chad le Clos", "South Africa", 51.14),
        (6, "László Cseh", "Hungary", 51.14),
        (3, "Li Zhuhao", "China", 51.26),
        (8, "Mehdy Metella", "France", 51.58),
        (7, "Tom Shields", "United States", 51.73),
  …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MohamedElgamal
Comment options

Answer selected by MohamedElgamal
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
Converted from issue

This discussion was converted from issue #3153 on August 23, 2023 13:12.