Commit Graph

432 Commits

Author SHA1 Message Date
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
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
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
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
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
Darren Burns
644fdc7ed1 Stop parsing time as scalar 2022-01-18 17:32:49 +00:00
Darren Burns
496f696edc Some tidying up of unused vars etc. 2022-01-18 14:34:58 +00:00
Darren Burns
1410648e36 Add Styles.reset method revert internal attributes to None 2022-01-18 14:13:40 +00:00
Darren Burns
ea40177db9 Reset styles before applying to ensure defaults are restored 2022-01-18 14:00:58 +00:00
Darren Burns
3188043aa6 Rename visible property to display, add setter 2022-01-18 13:51:15 +00:00
Darren Burns
fae1663365 Fix formatting 2022-01-18 12:59:59 +00:00
Darren Burns
466274cd4e Remove unused binding from basic.py example 2022-01-18 12:50:35 +00:00
Darren Burns
88ec4ba19d Initial implementation of visibility 2022-01-18 12:48:30 +00:00
Will McGugan
d7bcd00938 Merge pull request #201 from Textualize/hover-pseudo-class
Hover pseudo class
2022-01-11 13:55:27 +00:00
Will McGugan
d76b0ee11c change to naming convention of messages 2022-01-11 13:49:19 +00:00
Will McGugan
c611fd84ff docstrings 2022-01-11 09:48:06 +00:00
Will McGugan
4abfb77517 hover pseudo class 2022-01-10 15:18:58 +00:00
Will McGugan
3ffc5826c2 psuedo classes 2022-01-10 11:31:06 +00:00
Will McGugan
72d7b5915e query 2022-01-09 15:34:15 +00:00
Will McGugan
ddbaf8f04a updates 2022-01-02 16:28:00 +00:00
Will McGugan
d803ccdcd2 type fixes 2022-01-02 16:27:10 +00:00
Will McGugan
911d9024cc geometry refinements 2022-01-02 16:20:11 +00:00
Will McGugan
9753b96ad6 fix broken timer 2022-01-02 15:47:31 +00:00