We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you interact with a SelectionList and remove the option in one of the event handlers one of the following happens:
Example code:
from textual.app import App from textual.widgets import SelectionList from textual.widgets.selection_list import Selection from textual.widget import Widget import typing as t from string import ascii_letters class MyApp(App[str]): def compose(self) -> t.Iterable[Widget]: yield SelectionList( *[Selection(letter, letter, True, letter) for letter in ascii_letters], ) def on_selection_list_selection_toggled( self, event: SelectionList.SelectionToggled[str] ) -> None: id_ = event.selection.id if id_ is not None: event.selection_list.remove_option(id_) if __name__ == "__main__": app = MyApp() app.run()
It will be helpful if you run the following command and paste the results:
Video:
The text was updated successfully, but these errors were encountered:
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
Successfully merging a pull request may close this issue.
When you interact with a SelectionList and remove the option in one of the event handlers one of the following happens:
Example code:
It will be helpful if you run the following command and paste the results:
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
Video:
2024-04-29_19-33-11.mp4
The text was updated successfully, but these errors were encountered: