Will McGugan
fa5ac0dd68
simplified cache_key
2022-11-18 13:59:58 +00:00
Dave Pearson
50860b98b6
Update the 5x5 example to make use of callable screens
...
Now that #1054 has made it into main, make use of it.
2022-11-18 13:43:27 +00:00
Rodrigo Girão Serrão
4cf69b05bb
Update dev dependency listing to group notation.
2022-11-18 13:30:46 +00:00
Rodrigo Girão Serrão
deabb4859b
Add httpx as dev dependency.
2022-11-18 13:24:33 +00:00
Rodrigo Girão Serrão
0943d5a263
Fix docstring signatures.
2022-11-18 13:14:40 +00:00
Will McGugan
d90a1ea691
words
2022-11-18 12:30:26 +00:00
Will McGugan
d4d517aa8f
update changelog
2022-11-18 11:40:58 +00:00
Will McGugan
ac1c6a2f3c
rename
2022-11-18 11:39:35 +00:00
Will McGugan
f07684438f
fix remove freeze
2022-11-18 11:34:52 +00:00
Dave Pearson
ccabbf01a3
Merge pull request #1214 from davep/cl-typo-fix
...
Fix a typo in the CHANGELOG
2022-11-17 20:49:09 +00:00
Dave Pearson
6dce7f1402
Fix a typo in the CHANGELOG
2022-11-17 20:42:16 +00:00
Dave Pearson
447c9d8e5a
Merge pull request #1193 from davep/label-widget
...
Add a Label widget
2022-11-17 20:25:45 +00:00
Dave Pearson
c9484c64ca
Correct the container status of Label in the docs
...
See https://github.com/Textualize/textual/pull/1193#discussion_r1025466567
2022-11-17 20:25:02 +00:00
Dave Pearson
28bc889f7b
Correct the container status of Static in the docs
...
See https://github.com/Textualize/textual/pull/1193#discussion_r1025466567
2022-11-17 20:24:39 +00:00
Will McGugan
8470c62f79
Merge pull request #1210 from davep/exception-typo
...
Correct a typo in a exception string
2022-11-17 17:05:16 +00:00
Will McGugan
53982179f2
Merge pull request #1209 from davep/restore-docs
...
Restore the content of docs.md
2022-11-17 17:04:55 +00:00
Will McGugan
64a889a4f6
Merge pull request #1203 from davep/remove-dead-code
...
Remove dead code
2022-11-17 17:04:26 +00:00
Will McGugan
d9a0da91a4
fixed some rendering glitches
2022-11-17 16:59:29 +00:00
Dave Pearson
5d7c98938f
Correct a typo in a exception string
2022-11-17 16:13:31 +00:00
Dave Pearson
d30d3624bf
Restore the content of docs.md
2022-11-17 15:51:38 +00:00
Dave Pearson
5dcbd07f08
Move the labels in the colour preview away from Static and into Label
2022-11-17 11:42:04 +00:00
Dave Pearson
5a1b436e91
Move the label in the border preview away from Static and into Label
2022-11-17 11:36:07 +00:00
Dave Pearson
f1be4e21aa
Move the labels in the easing preview away from Static and into Label
2022-11-17 11:34:04 +00:00
Rodrigo Girão Serrão
e656284c57
Fix docstring for some widget optional arguments. ( #1204 )
...
* Update _button.py
* Update tabs.py
2022-11-17 11:21:39 +00:00
Dave Pearson
be0a268395
Remove old test code from scrollbar.py
...
This is covered in unit tests these days.
2022-11-17 11:04:01 +00:00
Dave Pearson
3b8b0ebeb2
Remove old test code from design.py
...
This is covered in unit tests these days.
2022-11-17 11:02:29 +00:00
Dave Pearson
265f770976
Remove old test code from case.py
...
This is covered in unit tests these days.
2022-11-17 11:01:31 +00:00
Dave Pearson
53b760eea2
Remove old test code from renderables/gradient.py
...
This isn't currently covered in unit tests but should be at some point?
Either way, having a test in dead code in the library doesn't help much any
more.
2022-11-17 10:58:01 +00:00
darrenburns
37670578ff
Ensure cursor visible when no placeholder in Input ( #1202 )
...
* Ensure cursor visible when no placeholder in Input
* Update CHANGELOG.md
2022-11-17 10:57:23 +00:00
Dave Pearson
33eefd56cf
Remove old test code from renderables/blank.py
...
This is covered in unit tests these days.
2022-11-17 10:56:27 +00:00
Dave Pearson
f40c0bf3d0
Remove old test code from css/tokenize.py
...
This is covered in unit tests these days.
2022-11-17 10:53:46 +00:00
Dave Pearson
c8ae2455cf
Remove old test code from css/styles.py
...
This isn't fullt covered in unit tests yet, but the dead code can be removed
and adding unit tests should likely be encouraged.
2022-11-17 10:47:22 +00:00
Dave Pearson
93f952b74b
Remove old test code from css/scalar.py
...
This is covered in unit tests these days.
2022-11-17 10:45:07 +00:00
Dave Pearson
965cc7d19f
Remove old test code from css/parse.py
...
This is covered in unit tests these days.
2022-11-17 10:44:08 +00:00
Dave Pearson
5f4a44c6c6
Fix the devtools example of how to run an app
2022-11-17 10:39:43 +00:00
Dave Pearson
29a891724b
Tidy up dead code from linux_driver.py
2022-11-17 10:37:30 +00:00
Dave Pearson
8a6d21da5e
Add the basics of Label docs for the manual
2022-11-17 10:15:35 +00:00
Dave Pearson
67386478ef
Trailing whitespace squishing
2022-11-17 10:14:55 +00:00
Dave Pearson
6744404e07
Merge branch 'Textualize:main' into label-widget
2022-11-17 08:43:18 +00:00
darrenburns
e0ddea839d
Update changelog regarding horizontal width auto fix ( #1192 )
...
Co-authored-by: Dave Pearson <davep@davep.org >
2022-11-16 21:48:30 +00:00
Dave Pearson
a1ed58a682
Merge branch 'main' into label-widget
2022-11-16 20:46:48 +00:00
Will McGugan
fd61ca69a4
Update comment.yml
2022-11-16 17:02:50 +00:00
Will McGugan
572d9b6968
Merge pull request #1195 from davep/button-variant-check
...
Check button variant for validity during button construction
2022-11-16 16:58:09 +00:00
darrenburns
e32e094b92
Support callables in App.SCREENS ( #1185 )
...
* Support Type[Screen] in App.SCREENS (lazy screens)
* Update CHANGELOG
* Remove redundant isinstance
2022-11-16 15:47:48 +00:00
Dave Pearson
e3899c0c10
Check button variant for validity during button construction
...
See #1189
2022-11-16 15:41:48 +00:00
darrenburns
df37a9b90a
Add get_child_by_id and get_widget_by_id ( #1146 )
...
* Add get_child_by_id and get_widget_by_id
* Remove redundant code
* Add unit tests for app-level get_child_by_id and get_widget_by_id
* Remove redundant test fixture injection
* Update CHANGELOG
* Enforce uniqueness of ID amongst widget children
* Enforce unique widget IDs amongst widgets mounted together
* Update CHANGELOG.md
* Ensuring unique IDs in a more logical place
* Add docstring to NodeList._get_by_id
* Dont use duplicate IDs in tests, dont mount 2000 widgets
* Mounting less widgets in a unit test
* Reword error message
* Use lower-level depth first search in get_widget_by_id to break out early
2022-11-16 15:29:59 +00:00
Will McGugan
3d35a602b5
added node expanding
2022-11-16 15:15:42 +00:00
Dave Pearson
22863148ef
Update src/textual/widgets/_label.py
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2022-11-16 15:09:27 +00:00
Dave Pearson
c881a9657f
Add a Label widget
...
For the moment this does nothing more than inherit from a Static; but what
it does do is make it easier for someone to add text to their application
and to style it by styling all the Labels. Before now it would be common to
use a Static but if you try and style (or query) all Statics, you'd also get
things like Buttons, which inherit from Static.
See #1190
2022-11-16 15:03:24 +00:00
darrenburns
a465f5c236
Horizontal width auto ( #1155 )
...
* Improvements to width:auto HorizontalLayout
* Fix HorizontalLayout.get_content_width
* Horizontal width auto improvement
* Removing some printxz
* Update snapshot for horizontal layout width auto dock
2022-11-16 14:49:52 +00:00