Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Textualize/textual into click-events
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Dec 10, 2024
2 parents 2c130b7 + 44d250a commit 599db2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions docs/widgets/data_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ and the [`hover_coordinate`][textual.widgets.DataTable.hover_coordinate] reactiv
then emits the [`CellHighlighted`][textual.widgets.DataTable.CellHighlighted] and [`CellSelected`][textual.widgets.DataTable.CellSelected]
events.

A new table starts with no cell highlighted, i.e., row and column are zero. You can force the first item to highlight with `move_cursor(row=1, column=1)`. All row and column indexes start at one.

=== "Column Cursor"

```{.textual path="docs/examples/widgets/data_table_cursors.py"}
Expand Down
7 changes: 1 addition & 6 deletions src/textual/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,7 @@ def _start(self) -> None:
self._task = create_task(self._run_timer(), name=self.name)

def stop(self) -> None:
"""Stop the timer.
Returns:
A Task object. Await this to wait until the timer has completed.
"""
"""Stop the timer."""
if self._task is None:
return

Expand Down

0 comments on commit 599db2c

Please sign in to comment.