The Life Universe and Everything release!
Some fixes, improvements, and updates to Pilot (used in testing).
Also some significant improvements in rendering speed.
A few minor breaking changes, see below for details...
[0.42.0] - 2023-11-22
Fixed
- Duplicate CSS errors when parsing CSS from a screen #3581
- Added missing
blurpseudo class #3439 - Fixed visual glitched characters on Windows due to Python limitation #2548
- Fixed
ScrollableContainerto receive focus #3632 - Fixed app-level queries causing a crash when the command palette is active #3633
- Fixed outline not rendering correctly in some scenarios (e.g. on Button widgets) #3628
- Fixed live-reloading of screen CSS #3454
Select.valuecould be in an invalid state #3612- Off-by-one in CSS error reporting #3625
- Loading indicators and app notifications overlapped in the wrong order #3677
- Widgets being loaded are disabled and have their scrolling explicitly disabled too #3677
- Method render on a widget could be called before mounting said widget #2914
Added
- Exceptions to
textual.widgets.select#3614InvalidSelectValueErrorfor when setting aSelectto an invalid valueEmptySelectErrorwhen creating/setting aSelectto have no options whenallow_blankisFalse
Selectmethods #3614clearis_blank
- Constant
Select.BLANKto flag an empty selection #3614 - Added
restrict,type,max_length, andvalid_emptyto Input #3657 - Added
Pilot.mouse_downto simulateMouseDownevents #3495 - Added
Pilot.mouse_upto simulateMouseUpevents #3495 - Added
Widget.is_mountedproperty #3709
Changed
- CSS error reporting will no longer provide links to the files in question #3582
- inline CSS error reporting will report widget/class variable where the CSS was read from #3582
- Breaking change: Setting
Select.valuetoNoneno longer clears the selection (SeeSelect.BLANKandSelect.clear) #3614 - Breaking change:
Buttonno longer inherits fromStatic, now it inherits directly fromWidget#3603 - Rich markup in markdown headings is now escaped when building the TOC #3689
- Mechanics behind mouse clicks. See this for more details. #3495
- Breaking change: max/min-width/height now includes padding and border. #3712