mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge branch 'multiselect' of github.com:davep/textual into multiselect
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user