370 Commits

Author SHA1 Message Date
Will McGugan
84e6a9d727 fix 2024-05-20 19:19:01 +01:00
Will McGugan
c5e0bccdd9 fix test 2024-05-20 19:12:29 +01:00
Will McGugan
3219d1578b docstrings 2024-05-19 20:18:34 +01:00
Will McGugan
34eb1ec5b5 docstring 2024-05-19 20:14:52 +01:00
Will McGugan
bd27d0432d Added dyanmic bindings to Markdown 2024-05-19 20:07:24 +01:00
Will McGugan
29077360d2 fix for new binding mechanism 2024-05-17 12:14:28 +01:00
Will McGugan
5606a40f07 don't make demo inline 2024-03-30 09:00:18 +00:00
Will McGugan
623d21b47b don't inline calculator 2024-03-29 16:49:57 +00:00
Will McGugan
e039a19ca0 style inline 2024-03-29 13:15:41 +00:00
Will McGugan
a77f85ee65 inline no clear 2024-03-28 14:08:02 +00:00
Will McGugan
4247753d54 calculate inline height 2024-03-27 17:53:44 +00:00
Will McGugan
ce36053352 docs and example 2024-02-20 21:38:47 +00:00
Will McGugan
b2fe0a76c2 nested (#3946)
* nested

* remove debug

* patch scope

* fix nested

* docs

* clarification

* docstring

* fix test

* remove debug

* copy

* fix example

* wording

* Apply suggestions from code review

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

* highlighting

* wording

* wording

* check errors

* type checking:

* extra errors

* extra test [skip ci]

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Co-authored-by: Dave Pearson <davep@davep.org>
2024-01-04 15:07:43 +00:00
Will McGugan
c6aef4b8b9 Added Merlin to examples 2023-12-13 17:32:42 +00:00
Will McGugan
a85edb77f4 added example 2023-12-13 10:52:45 +00:00
Will McGugan
149c5e2a1d color command example (#3314)
* color command example

* Scroll to end
2023-09-15 13:11:34 +01:00
Dave Pearson
460bbbad8d Merge branch 'main' into markdown-anchor-jump 2023-09-11 20:18:53 +01:00
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
Dave Pearson
c9d3e2d8b7 Merge branch 'main' into M-x 2023-08-23 14:22:28 +01:00
Rodrigo Girão Serrão
5ee0ebfef4 Rename CSS files to TCSS.
Related issue: #3137.
2023-08-22 13:21:17 +01:00
Dave Pearson
4443a88a62 Remove the code browser with command palette example
This was useful for testing, but we don't want to maintain it.
2023-08-21 11:40:46 +01:00
Dave Pearson
0df8148d79 Move the command sources on to the app and screens
Also add code to guard against pulling up the command palette while in the
command palette.
2023-08-14 13:21:35 +01:00
Dave Pearson
3e7f684d4c Merge branch 'main' into M-x 2023-08-14 09:17:09 +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
Dave Pearson
39005b8075 Add a version of the code browser that has a command palette 2023-08-08 16:26:56 +01:00
Dave Pearson
5c7957ae36 Remove unnecessary parameter for on_mount 2023-08-08 11:39:32 +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