Merge branch 'multiselect' of github.com:davep/textual into multiselect

This commit is contained in:
Dave Pearson
2023-05-25 14:12:10 +01:00

View File

@@ -260,7 +260,7 @@ class SelectionList(Generic[SelectionType], OptionList):
"""Post a message that the selected collection has changed, where appropriate. """Post a message that the selected collection has changed, where appropriate.
Note: Note:
A message will only be send if `_send_messages` is `True`. This A message will only be sent if `_send_messages` is `True`. This
makes this safe to call before the widget is ready for posting makes this safe to call before the widget is ready for posting
messages. messages.
""" """
@@ -387,7 +387,7 @@ class SelectionList(Generic[SelectionType], OptionList):
value: The value to toggle. value: The value to toggle.
Returns: Returns:
Always `True`. `True`.
""" """
if value in self._selected: if value in self._selected:
self._deselect(value) self._deselect(value)