Update dependency textual to v1 #421
Closed
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->==1.0.0Release Notes
Textualize/textual (textual)
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
mutate_reactiveand data binding https://github.com/Textualize/textual/pull/4828v0.74.0Compare Source
Fixed
Changed
Screen.dismisswith no arguments will invoke the screen callback withNone(previously the callback wasn't invoke at all). https://github.com/Textualize/textual/pull/4795v0.73.0Compare Source
Added
TextArea.line_number_startreactive attribute https://github.com/Textualize/textual/pull/4471TextArea.matching_bracket_locationproperty https://github.com/Textualize/textual/pull/4764DOMNode.mutate_reactivehttps://github.com/Textualize/textual/pull/4731textual.color.Gradienthttps://github.com/Textualize/textual/pull/4739textual.color.Gradient.get_rich_colorhttps://github.com/Textualize/textual/pull/4739Widget.remove_childrennow accepts an iterable if widgets in addition to a selector https://github.com/Textualize/textual/issues/4735ValueErrorwith improved error message when number of cells inserted usingDataTable.add_rowdoesn't match the number of columns in the table https://github.com/Textualize/textual/pull/4742Tree.move_cursorto programmatically move the cursor without selecting the node https://github.com/Textualize/textual/pull/4753Footercomponent style handling of padding for the key/description https://github.com/Textualize/textual/pull/4651StringKeyis now exported fromdata_tablehttps://github.com/Textualize/textual/pull/4760TreeNode.addandTreeNode.add_leafnow acceptsbeforeandafterarguments to position a new node https://github.com/Textualize/textual/pull/4772gradientparameter to theProgressBarwidget https://github.com/Textualize/textual/pull/4774Fixed
Tabswhere disabled tabs could still be activated by clicking the underline https://github.com/Textualize/textual/issues/4701DataTablepoor performance on startup and focus change when rows contain multi-line content https://github.com/Textualize/textual/pull/4748TreeandDirectoryTreehorizontal scrolling off-by-2 https://github.com/Textualize/textual/pull/4744Tree.select_nodesendsNodeSelectedmessage https://github.com/Textualize/textual/pull/4753CommandPalettenot focusing the input when opened whenApp.AUTO_FOCUSdoesn't match the input https://github.com/Textualize/textual/pull/4763SelectionList.SelectionToggledwill now be sent for each option when a bulk toggle is performed (e.g.toggle_all). Previously no messages were sent at all. https://github.com/Textualize/textual/pull/4759Changed
TreeNodeSelectedmessages are now posted beforeTreeNodeExpandedmessageswhen an expandable node is selechttps://github.com/Textualize/textual/pull/47534753
Markdown.LinkClicked.hrefis now automatically unquoted https://github.com/Textualize/textual/pull/4749TreeandDirectoryTreewill no longer linger after the mouse leaves the widget https://github.com/Textualize/textual/pull/4766v0.72.0Changed
Fixed
v0.71.0Changed
App.push_screennow returns an Awaitable rather than a screen. https://github.com/Textualize/textual/pull/4672Screen.dismissnow returns an Awaitable rather than a bool. https://github.com/Textualize/textual/pull/4672Fixed
Markdown.LinkClickedmessage https://github.com/Textualize/textual/issues/4683v0.70.0Compare Source
Fixed
v0.69.0Compare Source
Added
App.simulate_keyhttps://github.com/Textualize/textual/pull/4657Fixed
Changed
App.check_bindingsis now privateApp.action_check_bindingsis nowApp.action_simulate_keyv0.68.0Compare Source
Added
ContentSwitcher.add_contentFixed
v0.67.1Compare Source
Changed
v0.67.0Compare Source
Added
ctrl+pageup/ctrl+pagedownwill scroll page left/right in DataTable https://github.com/Textualize/textual/pull/4633g/Gwill scroll to the top/bottom of the DataTable https://github.com/Textualize/textual/pull/4633hjklkey bindings to move the cursor in DataTable https://github.com/Textualize/textual/pull/4633Changed
homeandendnow works horizontally instead of vertically in DataTable https://github.com/Textualize/textual/pull/4633TreeandDirectoryTreenodes now have a bigger click target, spanning the full line https://github.com/Textualize/textual/pull/4636Fixed
App.CLOSE_TIMEOUThttps://github.com/Textualize/textual/pull/4635v0.66.0Compare Source
Changed
get_content_heightwill now return 0 if the renderable is Falsey https://github.com/Textualize/textual/pull/4617Screen.dismissis now a noop if the screen isn't active. Previously it would raise aScreenStackError, now it returnsFalse. https://github.com/Textualize/textual/pull/4621Added
Screen.is_activeiconreactive to Header widget https://github.com/Textualize/textual/pull/4627time_formatreactive to Header widget https://github.com/Textualize/textual/pull/4627tooltipparameter to input widgets https://github.com/Textualize/textual/pull/4625v0.65.2Compare Source
Fixed
Added
v0.65.1Compare Source
Fixed
v0.65.0Compare Source
Added
Fixed
Changes
v0.64.0Compare Source
Fixed
Markdown.goto_anchorno longer scrolling the heading into view https://github.com/Textualize/textual/pull/4583v0.63.6Compare Source
Fixed
v0.63.5Compare Source
Fixed
Added
Styles.is_auto_widthandStyle.is_auto_heightv0.63.4Compare Source
Added
immediateswitch toSignal.publishFixed
v0.63.3Compare Source
Fixed
Footergrid size https://github.com/Textualize/textual/pull/4545Changed
v0.63.2Compare Source
Fixed
v0.63.1Compare Source
Fixed
v0.63.0Compare Source
Fixed
Changed
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.