Commit Graph

607 Commits

Author SHA1 Message Date
Darren Burns
328b1be0b1 Fix vertical layout 2022-01-26 10:33:38 +00:00
Darren Burns
3c730665f5 Merge branch 'css' into dont-render-margin 2022-01-25 16:42:34 +00:00
Darren Burns
19d0a2b097 Fixing vertical layout 2022-01-25 15:20:14 +00:00
Darren Burns
07a053fdd4 Merge pull request #225 from Textualize/view-from-css
Use the `layout` as specified in CSS
2022-01-25 14:29:04 +00:00
Darren Burns
8c3bc4135e Add missing docstring, use explicit kwargs, remove id=_root 2022-01-25 14:20:32 +00:00
Darren Burns
f549ae3f7c More docs, ensuring error cases are covered 2022-01-25 14:00:49 +00:00
Darren Burns
764f14b826 Rename StringProperty, document some more properties 2022-01-25 13:27:57 +00:00
Darren Burns
3434ffd944 Document a few more style properties 2022-01-25 11:33:55 +00:00
Darren Burns
2f84bd94c2 Some more docs on style properties 2022-01-24 15:22:00 +00:00
Darren Burns
cea331ef4d Ensure Python 3.7 support using typing_extensions 2022-01-21 16:04:29 +00:00
Darren Burns
89524e301e Remove some unused logging 2022-01-21 16:00:47 +00:00
Darren Burns
a8cd64964f Fix a docstring 2022-01-21 15:54:13 +00:00
Darren Burns
5690f946d1 Testing to ensure layout can properly be set via view 2022-01-21 15:50:58 +00:00
Darren Burns
deb7f1cb54 Use dock layout by default in View node-level CSS 2022-01-21 15:25:15 +00:00
Darren Burns
60134b650d Rename variable in a test 2022-01-21 14:39:20 +00:00
Darren Burns
e6919ac35b Add docstring to Stylesheet.apply 2022-01-21 14:36:48 +00:00
Darren Burns
837144cc13 Remove a log 2022-01-21 14:28:37 +00:00
Darren Burns
1bc4bf54ae Adding tests for layout factory 2022-01-21 14:27:47 +00:00
Darren Burns
489f2c48d2 Merge branch 'css' of github.com:willmcgugan/textual into view-from-css 2022-01-21 14:23:16 +00:00
Darren Burns
8601cea0fa Remove redundant block of code 2022-01-21 14:16:52 +00:00
Darren Burns
742104eb21 Remove _layout attribute from App 2022-01-21 14:15:09 +00:00
Darren Burns
d04c66291b Improve error message when layout doesnt exist, add tests for parsing layout from CSS 2022-01-21 14:14:40 +00:00
Darren Burns
9c2a125c24 Ensuring we get and set Layout as set in view.styles everywhere 2022-01-21 13:46:56 +00:00
Darren Burns
c6429e51ac Fixing transitive imports and circular imports 2022-01-21 13:18:39 +00:00
Darren Burns
5773e39845 Move LayoutProperty into styles, add some comments 2022-01-21 12:33:35 +00:00
Darren Burns
6a1c1cc874 Merge branch 'css' into dont-render-margin 2022-01-21 10:07:53 +00:00
Darren Burns
8406718cf3 Revert basic.py back to previous state 2022-01-20 17:16:26 +00:00
Darren Burns
c59dff5c15 Move logic for applying margin to widgets into WidgetPlacement 2022-01-20 17:12:00 +00:00
Will McGugan
60fdada61a Merge pull request #219 from Textualize/invisibility
Invisible widgets now dont render
2022-01-20 16:34:02 +00:00
Darren Burns
683d5b8a57 Adding additional documentation for style properties 2022-01-20 16:20:00 +00:00
Will McGugan
4118d3eb45 win32 support 2022-01-20 16:02:56 +00:00
Darren Burns
13d7580291 Remove unused import 2022-01-20 15:04:37 +00:00
Darren Burns
8b24a476f0 Remove redundant code, fix incorrect docstring 2022-01-20 14:50:35 +00:00
Darren Burns
e2fd92bda2 Margin space is now not rendered as solid colour 2022-01-20 14:47:37 +00:00
Darren Burns
fc027a9f6c Docstring for StyleProperty 2022-01-20 13:36:53 +00:00
Darren Burns
1e92b08e1b Docstring improvements 2022-01-20 13:05:58 +00:00
Darren Burns
678a67ce2d Invisible widgets now dont render 2022-01-20 11:39:56 +00:00
Will McGugan
54e6342864 windows driver 2022-01-19 16:16:29 +00:00
Will McGugan
185788b760 Merge pull request #214 from Textualize/time-no-scalar
Splitting out parsing of durations into new token types, avoiding Scalar
2022-01-19 16:14:52 +00:00
Darren Burns
3af8c5ad9d Merge pull request #212 from Textualize/visibility
Visibility
2022-01-19 16:09:54 +00:00
Darren Burns
3640afc517 Add some docstrings 2022-01-19 16:04:11 +00:00
Darren Burns
c462beb312 Format exception message with !r 2022-01-19 15:51:52 +00:00
Darren Burns
768672c7f8 Add a couple of docstrings for DurationErrors 2022-01-19 15:50:03 +00:00
Darren Burns
077cd04071 Switch to relative imports 2022-01-19 15:41:03 +00:00
Darren Burns
6345850b69 Dont set error cause for StylesheetErrors 2022-01-19 15:30:25 +00:00
Darren Burns
f9f7efb1cf Ensure test accounts for negative values 2022-01-19 15:20:03 +00:00
Darren Burns
1103844708 Namespacing parsing tests into classes 2022-01-19 15:09:54 +00:00
Darren Burns
baba4ceed8 Stop black from formatting tests 2022-01-19 15:02:01 +00:00
Darren Burns
fd47ef491b Separate parsing of scalar, number, duration 2022-01-19 14:56:03 +00:00
Will McGugan
3f8d0c7c36 Merge pull request #213 from Textualize/display-setter
Rename visible property to display, add setter
2022-01-19 11:06:24 +00:00