Commit Graph

297 Commits

Author SHA1 Message Date
Dave Pearson
798f67f01d Allow loading a different file into the markdown example
Not getting carried away with this -- frogmouth exists after all -- but
allowing passing a different file on the command line does make it easier to
quickly test the Markdown widget.
2023-09-06 09:27:22 +01:00
Rodrigo Girão Serrão
5ee0ebfef4 Rename CSS files to TCSS.
Related issue: #3137.
2023-08-22 13:21:17 +01:00
Will McGugan
bcd5760c67 calculator uses Digits (#3092)
* calculator uses Digits

* remove example
2023-08-11 17:49:30 +01:00
Will McGugan
d857d57a2e fix markdown example (#3081) 2023-08-09 16:32:38 +01:00
Will McGugan
e3115c50bf fix for code browser type error (#2514) 2023-05-08 18:42:10 +01:00
Will McGugan
91a9d570a4 On decorator (#2453)
* Add on decorator

* decorator code

* docs for on decorator

* Examples

* test errors

* simplify listing

* words

* changelog

* Update docs/guide/events.md

Co-authored-by: Dave Pearson <davep@davep.org>

* Update docs/guide/events.md

Co-authored-by: Dave Pearson <davep@davep.org>

* Update docs/examples/events/on_decorator.css

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update docs/guide/events.md

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* rewording

* comment

* clarification

* Added note

---------

Co-authored-by: Dave Pearson <davep@davep.org>
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-02 16:17:40 +01:00
Will McGugan
f53c3cd589 container refactor (#2377)
* container refactor

* Rearrange css

* changelog

* try timer updates

* force update

* sleep idle

* Restore updates
2023-04-26 13:36:08 +01:00
Rodrigo Girão Serrão
e5033d7d23 Remove hanging lines from docstrings. (#2349)
* Remove hanging lines from docstrings.

Deleted hanging blank lines at the end of docstrings.

Regex pattern:
 - find `\n\n( *)"""`
 - replace with `\n$1"""`
2023-04-24 11:21:38 +01:00
Will McGugan
13939499d9 implement single line comments (#2248) 2023-04-11 15:21:41 +01:00
Will McGugan
b5689b1f69 Worker API (#2182)
* worker class

* worker API tests

* tidy

* Decorator and more tests

* type fix

* error order

* more tests

* remove active message

* move worker manager to app

* cancel nodes

* typing fix

* revert change

* typing fixes and cleanup

* revert typing

* test fix

* cancel group

* Added test for worker

* comment

* workers docs

* Added exit_on_error

* changelog

* svg

* refactor test

* remove debug tweaks

* docstrings

* worker test

* fix typing in run

* fix 3.7 tests

* blog post

* fix deadlock test

* words

* words

* words

* workers docs

* blog post

* Apply suggestions from code review

Co-authored-by: Dave Pearson <davep@davep.org>

* docstring

* fix and docstring

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update src/textual/widgets/_markdown.py

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update src/textual/worker.py

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Fix black

* docstring

* merge

* changelog

---------

Co-authored-by: Dave Pearson <davep@davep.org>
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-04-04 13:12:51 +01:00
Roy Attias
d0035b4d4b examples: json_tree: Use public attributes (#2138) 2023-03-27 14:26:55 +01:00
Will McGugan
2c120c0983 Replace markdown table (#2055)
* Replace markdown table

* snapshots

* fix markdown snapshot

* snapshot update

* imports and docstrings

* remove reference to DataTable

* typing fix
2023-03-18 10:38:26 +00:00
Rodrigo Girão Serrão
8565d3cef6 Renamed 'Vertical' to 'VerticalScroll'.
Related issues: #1957.
2023-03-08 18:31:24 +00:00
Will McGugan
5c2cf2960e new syntax for calculator 2023-02-25 14:41:00 +00:00
Will McGugan
bd838c7f03 added hr to markdown example 2023-02-24 17:33:20 +00:00
Dave Pearson
5388331bfa Merge pull request #1857 from davep/alt-compose-5x5 2023-02-21 23:14:27 +00:00
Dave Pearson
e3b3157540 Swap the 5x5 game header to the alt-compose method
Embrace the future!
2023-02-21 22:02:01 +00:00
Will McGugan
9b13122583 fix for dictionary example 2023-02-21 13:57:52 +00:00
Will McGugan
a714ffe388 Merge branch 'main' into alt-compose 2023-02-21 10:46:45 +00:00
Will McGugan
4c9326f66f Merge pull request #1832 from Textualize/batch-update
Batch update
2023-02-21 10:42:31 +00:00
Will McGugan
068d7513b8 Merge pull request #1823 from Textualize/optimize-scroll
Optimize scroll with a Spatial Map
2023-02-21 10:41:04 +00:00
Will McGugan
453070032e Merge pull request #1785 from davep/promote-disabled
Promote disabled to `Widget` level
2023-02-21 09:56:01 +00:00
Will McGugan
9045f13837 context syntax 2023-02-20 18:03:36 +00:00
Will McGugan
14bbe0445e context compose 2023-02-20 16:26:12 +00:00
Will McGugan
347b94a0fe changelog 2023-02-20 16:16:10 +00:00
Will McGugan
433e371dc9 changelog and snapshots 2023-02-19 10:05:37 +00:00
Will McGugan
9b81e59ff8 Merge branch 'optimize-scroll' into batch-update 2023-02-19 10:02:50 +00:00
Will McGugan
a63d07f619 enhanced ordered list 2023-02-19 09:18:26 +00:00
Will McGugan
434e6178d3 list item style 2023-02-18 23:25:17 +00:00
Will McGugan
5a6d718344 list item improvements 2023-02-18 23:15:15 +00:00
Will McGugan
c3e5e0490c remove log 2023-02-18 22:46:43 +00:00
Will McGugan
724e0e3f58 Markdown and dictionary example 2023-02-18 22:43:13 +00:00
Will McGugan
665efa2d05 error handling in dictionary 2023-02-18 18:01:25 +00:00
Will McGugan
b6272a3b59 fix dictionary example going down 2023-02-18 17:57:48 +00:00
Dave Pearson
474209ec93 Switch 5x5's help over to the new Markdown viewer 2023-02-17 14:27:11 +00:00
Dave Pearson
4fe1e0f0c5 Merge branch 'main' into promote-disabled 2023-02-15 11:10:45 +00:00
Dave Pearson
6ab9a424a2 Merge branch 'main' into promote-disabled 2023-02-15 10:14:21 +00:00
Dave Pearson
96a53d56d7 Enable "pathlike" locations for the Markdown viewer 2023-02-15 09:55:20 +00:00
Dave Pearson
013f6cbc3f Allow the markdown example to be run outside of examples directory 2023-02-15 09:43:21 +00:00
Will McGugan
08c3a7214e No, I repeat, no abbreviations 2023-02-14 17:28:24 +00:00
Will McGugan
5a730d7a0a typo and docstring 2023-02-14 16:48:25 +00:00
Will McGugan
71d0017ef9 docs and refactor 2023-02-14 15:22:15 +00:00
Dave Pearson
7763020f53 Move future import to after the module docstring
Looks like someone added this but placed it before the module docstring.
Fixing it as I notice it.
2023-02-14 15:00:57 +00:00
Dave Pearson
e26e75a9d1 Swap game_playable to use the simplified disable ability 2023-02-14 14:59:53 +00:00
Will McGugan
a6d7747f28 fix 5x5 2023-02-07 12:10:02 +00:00
Will McGugan
6c4adea608 update Mypy 2023-02-07 11:25:36 +00:00
Will McGugan
5930ebf82e remove _typing.py 2023-02-07 10:46:28 +00:00
Will McGugan
bcf382d2ff typing of Final 2023-02-07 09:06:08 +00:00
Dave Pearson
4adfe69ec9 Remove TreeNode as a pseudo-widget
This encourages importing it from `textual.widgets.tree` instead, keeping it
in line with the other changes made for #1637.

Note this is a breaking change.
2023-01-23 17:37:58 +00:00
Galmo13
affcb60d9b Fixed a typo
Fixed a "buy" by a "by".
2023-01-16 16:07:58 +01:00