Update dependency textual to v3 #550
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.42.0->==3.2.0Release Notes
Textualize/textual (textual)
v3.2.0Compare Source
Fixed
OptionListcausing excessive redrawing https://github.com/Textualize/textual/pull/5766TEXTUAL_DEBUGis set https://github.com/Textualize/textual/pull/5782Added
:first-childand:last-childpseudo classes https://github.com/Textualize/textual/pull/5776toggle_classparameter to reactives https://github.com/Textualize/textual/pull/5778compactparameter and reactive toButton,Input,ToggleButton,RadioSet,OptionList,TextAreahttps://github.com/Textualize/textual/pull/5778HORIZONTAL_BREAKPOINTSandVERTICAL_BREAKPOINTStoAppandScreenhttps://github.com/Textualize/textual/pull/5779Changed
RadioSetnow has a default width of1frhttps://github.com/Textualize/textual/pull/5778v3.1.1Compare Source
Fixed
v3.1.0Compare Source
Fixed
OptionListsize after removing or clearing options https://github.com/Textualize/textual/issues/5728can_focus()https://github.com/Textualize/textual/pull/5737Changed
Added
TEXTUAL_DIM_FACTORenv var to set the opacity of the 'dim' ANSI attribute https://github.com/Textualize/textual/pull/5715notify()now accepts amarkupparameter to disable rendering the message as markup https://github.com/Textualize/textual/pull/5719Screen.text_selection_started_signalhttps://github.com/Textualize/textual/pull/5739App.clear_selection()helper method to clear arbitrary text selection of active screen https://github.com/Textualize/textual/pull/5739v3.0.1Compare Source
Fixed
v3.0.0Compare Source
Changed
App.queryand friends will now always query the default (first) screen, not necessarily the active screen.Content()is equivalent toContent("")textual-input,textual-output. These should become visible in monitoring tools (ps, top, htop) as of Python 3.14. https://github.com/Textualize/textual/pull/5654Fixed
scroll_endparameter to theLog.write_linemethod https://github.com/Textualize/textual/pull/5672overflow: hiddenhttps://github.com/Textualize/textual/pull/5681Added
Content.first_lineproperty https://github.com/Textualize/textual/pull/5657Content.from_textconstructor https://github.com/Textualize/textual/pull/5657Content.emptyconstructor https://github.com/Textualize/textual/pull/5657Content.padmethod https://github.com/Textualize/textual/pull/5657Style.has_transparent_foregroundproperty https://github.com/Textualize/textual/pull/5657v2.1.2Compare Source
Fixed
v2.1.1Compare Source
Fixed
Linkbinding to open the link https://github.com/Textualize/textual/issues/5564v2.1.0Compare Source
Fixed
Content.from_markupnot stripping control codes https://github.com/Textualize/textual/pull/5557delta_xanddelta_yin mouse events when smooth scrolling is enabled https://github.com/Textualize/textual/pull/5556Added
pointer_x,pointer_y,pointer_screen_x, andpointer_screen_yattributes to mouse events https://github.com/Textualize/textual/pull/5556Changed
TerminalSupportsInBandWindowResizetoInBandWindowResizehttps://github.com/Textualize/textual/pull/5558v2.0.4Compare Source
Fixed
v2.0.3Compare Source
Fixed
v2.0.2Compare Source
Fixed
v2.0.1Compare Source
Fixed
v2.0.0Compare Source
Added
Select.type_to_searchwhich allows you to type to move the cursor to a matching option https://github.com/Textualize/textual/pull/5403from_app_focustoFocusevent to indicate if a widget is being focused because the app itself has regained focus or not https://github.com/Textualize/textual/pull/5379Blurredmessage toInputwidget (matchingSubmittedandChanged) to make it easier to synchronize withvalidate_onparameter when set to 'blur'.Offset.transposehttps://github.com/Textualize/textual/pull/5409screen--selectioncomponent class to define style for selection https://github.com/Textualize/textual/pull/5409Widget.select_containerproperty https://github.com/Textualize/textual/pull/5409Widget.select_allhttps://github.com/Textualize/textual/pull/5409Region.bottom_right_inclusivehttps://github.com/Textualize/textual/pull/5409DOMNode.query_ancestorhttps://github.com/Textualize/textual/pull/5409text-wrapandtext-overflowCSS values https://github.com/Textualize/textual/pull/5485Content.from_markuphttps://github.com/Textualize/textual/pull/5485Fixed
Pilot.clicknot working withtimesparameter https://github.com/Textualize/textual/pull/5398Inputwill now only be automatically selected when the widget is focused by the user, not when the app itself has regained focus (similar to web browsers). https://github.com/Textualize/textual/pull/5379TextAreaandInputbehavior when there is a selection and the user presses left or right https://github.com/Textualize/textual/pull/5400shifthttps://github.com/Textualize/textual/pull/5404Inputto post aBlurredmessageHeadericon showing command palette tooltip when disabled https://github.com/Textualize/textual/pull/5427Changed
Separator, a separator may be specified withNoneTEXTUAL_SMOOTH_SCROLL=0to disable.Removed
wrapargument from OptionList (use CSStext-wrap: nowrap; text-overflow: ellipsis)tooltipargument from OptionList. Usetooltipattribute orwith_tooltip(...)method.v1.0.0Compare Source
Added
App.clipboardhttps://github.com/Textualize/textual/pull/5352systemboolean to Binding, which hides the binding from the help panel https://github.com/Textualize/textual/pull/5352chainattribute onClickevents https://github.com/Textualize/textual/pull/5369timesparameter toPilot.clickmethod, for simulating rapid clicks https://github.com/Textualize/textual/pull/5369Changed
ctrl+qhttps://github.com/Textualize/textual/pull/5352ctrl+shift+know deletes the current line inTextArea, andctrl+xwill cutthe selection if there is one, otherwise it will cut the current lhttps://github.com/Textualize/textual/pull/53745374
Fixed
v0.89.1Compare Source
Fixed
v0.89.0Compare Source
v0.88.1Compare Source
Fixed
v0.88.0Compare Source
Fixed
Widget.anchorhttps://github.com/Textualize/textual/pull/5290ListViewnot updating its index or highlighting after removing items https://github.com/Textualize/textual/issues/5114Changed
ListView.popnow returnsAwaitCompleterather thanAwaitRemovehttps://github.com/Textualize/textual/pull/5135ListView.remove_itemsnow returnsAwaitCompleterather thanAwaitRemovehttps://github.com/Textualize/textual/pull/5135v0.87.1Compare Source
v0.87.0Compare Source
Added
positionCSS rule. https://github.com/Textualize/textual/pull/5278Widget.set_scrollhttps://github.com/Textualize/textual/pull/5278Select.selectionhttps://github.com/Textualize/textual/pull/5278Fixed
v0.86.3Compare Source
Changed
Fixed
ato add stopwatches in the tutorial app https://github.com/Textualize/textual/pull/5257v0.86.2Compare Source
Fixed
v0.86.1Compare Source
Fixed
v0.86.0Compare Source
Fixed
TextAreamouse selection with tab characters https://github.com/Textualize/textual/issues/5212Tabsnot updating the highlighting after removing a tab https://github.com/Textualize/textual/issues/5218Added
App.themereactive attribute https://github.com/Textualize/textual/pull/5087variantparameter toLabelwidget for quick access to common styles https://github.com/Textualize/textual/pull/5087App.get_themewhich returns a theme by name https://github.com/Textualize/textual/pull/5087App.register_themeandApp.unregister_themehttps://github.com/Textualize/textual/pull/5087App.theme_changed_signalhttps://github.com/Textualize/textual/pull/5087App.available_themesproperty which returns a mapping of theme names toThemeinstances https://github.com/Textualize/textual/pull/5087App.current_themeproperty which returns the currently active theme object https://github.com/Textualize/textual/pull/5087App.get_theme_variable_defaultswhich returns a mapping of theme variables to their default values https://github.com/Textualize/textual/pull/5087App.searchwhich allows bringing up a fuzzy search list of commands on-demand https://github.com/Textualize/textual/pull/5087App.search_themeswhich allows bringing up a fuzzy search list of themes on-demand https://github.com/Textualize/textual/pull/5087textual.theme.ThemeProvider, a command palette provider which returns all registered themes https://github.com/Textualize/textual/pull/5087Widget.is_scrollinghttps://github.com/Textualize/textual/pull/5238Tree.add_jsonhttps://github.com/Textualize/textual/pull/5238Changed
Driver.process_eventis nowDriver.process_messagehttps://github.com/Textualize/textual/pull/5217Driver.send_eventis nowDriver.send_messagehttps://github.com/Textualize/textual/pull/5217can_focusandcan_focus_childrenparameters to scrollable container types. https://github.com/Textualize/textual/pull/5226textual.lazy.Revealhttps://github.com/Textualize/textual/pull/5226Screen.action_blurhttps://github.com/Textualize/textual/pull/5226Clickevents can now be used with the on decorator to match the originally clicked widget https://github.com/Textualize/textual/pull/5238App.darkreactive attribute https://github.com/Textualize/textual/pull/5087Removed
App.HOVER_EFFECTS_SCROLL_PAUSEhttps://github.com/Textualize/textual/pull/5238v0.85.2Compare Source
v0.85.1Compare Source
Fixed
v0.85.0Compare Source
Changed
App.open_urlautomatically https://github.com/Textualize/textual/pull/5113*) will now not match widgets with the class-textual-system(scrollbars, notifications etc) https://github.com/Textualize/textual/pull/5113Screen.can_viewandWidget.can_viewtoScreen.can_view_entireandWidget.can_view_entirehttps://github.com/Textualize/textual/pull/5174Added
open_linkstoMarkdownandMarkdownViewerwidgets https://github.com/Textualize/textual/pull/5113App.DEFAULT_MODEhttps://github.com/Textualize/textual/pull/5113Containers.HorizontalGroupandContainers.VerticalGrouphttps://github.com/Textualize/textual/pull/5113$,£,€,(,)symbols to Digits https://github.com/Textualize/textual/pull/5113Button.actionparameter to invoke action when clicked https://github.com/Textualize/textual/pull/5113immediateparameter to scroll methods https://github.com/Textualize/textual/pull/5164textual._loop.loop_from_indexhttps://github.com/Textualize/textual/pull/5164min_colorandmax_colorto Sparklines constructor, which take precedence over CSS https://github.com/Textualize/textual/pull/5174python -m textual, not quite finished but better than the old one https://github.com/Textualize/textual/pull/5174Screen.can_view_partialandWidget.can_view_partialhttps://github.com/Textualize/textual/pull/5174App.is_webproperty to indicate if the app is running via a web browser https://github.com/Textualize/textual/pull/5128EnterandLeaveevents can now be used with theondecorator https://github.com/Textualize/textual/pull/5159Fixed
v0.84.0Compare Source
Fixed
RadioSetnot being scrollable https://github.com/Textualize/textual/issues/5100Added
background-tintCSS rule https://github.com/Textualize/textual/pull/5117:first-of-type,:last-of-type,:odd, and:evenpseudo classes https://github.com/Textualize/textual/pull/5139v0.83.0Compare Source
Added
Region.constrainhttps://github.com/Textualize/textual/pull/5097Changed
Screen.ALLOW_IN_MAXIMIZED_VIEWwill now default toApp.ALLOW_IN_MAXIMIZED_VIEWhttps://github.com/Textualize/textual/pull/5088.-textual-systemwill now be included in the maximize view by default https://github.com/Textualize/textual/pull/5088Widget.absolute_offsetpublic https://github.com/Textualize/textual/pull/5097Region.inflectwill now assume that margins overlap https://github.com/Textualize/textual/pull/5097Pilot.clickand friends will now accept a widget, in addition to a selector https://github.com/Textualize/textual/pull/5095v0.82.0Compare Source
Fixed
Added
DOMNode.is_on_screenproperty https://github.com/Textualize/textual/pull/5063Changed
Widget.set_loadingno longer return an awaitable https://github.com/Textualize/textual/pull/5079v0.81.0Compare Source
Added
x_axisandy_axisparameters toWidget.scroll_to_regionhttps://github.com/Textualize/textual/pull/5047Tree.move_cursor_to_linehttps://github.com/Textualize/textual/pull/5052Screen.pop_until_activehttps://github.com/Textualize/textual/pull/5069Changed
Fixed
v0.80.1Compare Source
Fixed
v0.80.0Compare Source
Added
MaskedInputwidget https://github.com/Textualize/textual/pull/4783"none"value added todock,hatchandsplitstyles https://github.com/Textualize/textual/pull/4982"none"added to box and border style properties (e.gwidget.style.border = "none") https://github.com/Textualize/textual/pull/4982ansi_colorswitch to App to permit ANSI (themed) colors https://github.com/Textualize/textual/pull/5000:ansipseudo class https://github.com/Textualize/textual/pull/5000-ansi-scrollbarstyle to widgets https://github.com/Textualize/textual/pull/5000App.INLINE_PADDINGto define the number of spaces above inline apps https://github.com/Textualize/textual/pull/5000nocolorpsuedoclass when NO_COLOR env var is set-BINDING_GROUP_TITLEnow defaults toNonehttps://github.com/Textualize/textual/pull/5023TreeNode.siblings,TreeNode.next_sibling,TreeNode.previous_sibling,TreeNode.is_collapsedhttps://github.com/Textualize/textual/pull/5023Tree.center_scrollhttps://github.com/Textualize/textual/pull/5023Tree.unselecthttps://github.com/Textualize/textual/pull/5023Changed
scrollbar-size-verticalchanged to2in inline styles to match Widget default CSS (unlikely to affect users) https://github.com/Textualize/textual/pull/4982Toasthttps://github.com/Textualize/textual/pull/4984RichLogresult in slightly different semantics, see docstrings for details https://github.com/Textualize/textual/pull/4978enabledswitch to filters (mostly used internally) https://github.com/Textualize/textual/pull/5000BINDING_GROUP_TITLEnow defaults toNonehttps://github.com/Textualize/textual/pull/5023Fixed
RichLog.writenot respectingwidthparameter https://github.com/Textualize/textual/pull/4978RichLogwriting at wrong width whenwriteoccurs before width is known (e.g. incomposeoron_mount) https://github.com/Textualize/textual/pull/4978RichLog.writeincorrectly shrinking width toRichLog.min_widthwhenshrink=True(now shrinks to fit content area instead) https://github.com/Textualize/textual/pull/4978darkreactive on startup https://github.com/Textualize/textual/pull/4989DataTablecached height issue on re-populating the table when using auto-height rows https://github.com/Textualize/textual/pull/4992inline_no_clear=Truehttps://github.com/Textualize/textual/issues/5019v0.79.1Compare Source
Fixed
v0.79.0Compare Source
Added
DOMNode.check_consume_keyhttps://github.com/Textualize/textual/pull/4940App.ESCAPE_TO_MINIMIZE,App.screen_to_minimize, andScreen.ESCAPE_TO_MINIMIZEhttps://github.com/Textualize/textual/pull/4951DOMNode.query_exactly_onehttps://github.com/Textualize/textual/pull/4950SelectorSet.is_simplehttps://github.com/Textualize/textual/pull/4950Changed
DOMNode.query_onewill notraise TooManyMatcheshttps://github.com/Textualize/textual/pull/4950v0.78.0Compare Source
Added
Screen.maximize,Screen.minimize,Screen.action_maximize,Screen.action_minimize,Widget.is_maximized,Widget.allow_maximize. https://github.com/Textualize/textual/pull/4931Widget.ALLOW_MAXIMIZE,Screen.ALLOW_IN_MAXIMIZED_VIEWclassvars https://github.com/Textualize/textual/pull/4931v0.77.0Compare Source
Added
tooltipto Binding https://github.com/Textualize/textual/pull/4859show_command_palette=Falseto disable) https://github.com/Textualize/textual/pull/4867TOOLTIP_DELAYto App to customize time until a tooltip is displayedRegion.get_spacing_betweenhttps://github.com/Textualize/textual/pull/4876App.COMMAND_PALETTE_KEYto change default command palette key binding https://github.com/Textualize/textual/pull/4867App.get_key_displayhttps://github.com/Textualize/textual/pull/4890DOMNode.BINDING_GROUPhttps://github.com/Textualize/textual/pull/4906DOMNode.HELPclassvar which contains Markdown help to be shown in the help panel https://github.com/Textualize/textual/pull/4915App.get_system_commandshttps://github.com/Textualize/textual/pull/4920Changed
ctrl+phttps://github.com/Textualize/textual/pull/4867ctrl_to_caretandupper_case_keysfrom Footer. These can be implemented inApp.get_key_display.SystemCommandstoSystemCommandsProviderhttps://github.com/Textualize/textual/pull/4920ClassicFooterwidget (please use newFooterwidget) https://github.com/Textualize/textual/pull/4921App.get_key_displaynow requirestextual.binding.Bindinginstead ofstr.Screeninstances inApp.SCREENSandApp.MODESFixed
validate_onvalue isn't a set https://github.com/Textualize/textual/pull/4868Input.cursor_blinkhaving no effect on the blink cycle after mounting https://github.com/Textualize/textual/pull/4869App.MODESbeing the same for all instances -- per-instance modes now exist internallyv0.76.0Compare Source
Changed
Size.cip_size, which was a clone ofcrop_sizeDOMNode._automatic_refreshtoDOMNode.automatic_refreshto allow for customization https://github.com/Textualize/textual/pull/4847Fixed
Added
ESCDELAYenv var when detecting escape keys https://github.com/Textualize/textual/pull/4848v0.75.1Compare Source
Fixed
v0.75.0Compare Source
Added
App.open_urlto open URLs in the web browser. When running via the WebDriver, the URL will be opened in the browser that is controlling the app https://github.com/Textualize/textual/pull/4819Widget.is_mouse_overhttps://github.com/Textualize/textual/pull/4818nodeattribute toevents.Enterandevents.Leavehttps://github.com/Textualize/textual/pull/4818Changed
events.Enterandevents.Leaveevents now bubble. https://github.com/Textualize/textual/pull/4818Widget.mouse_overtoWidget.mouse_hoverhttps://github.com/Textualize/textual/pull/4818Fixed
Configuration
📅 Schedule: Branch creation - "after 7am and before 4pm on monday" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.