Skip to content
New issue

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

Broken on Textual v0.11+ #1

Closed
ofek opened this issue Mar 4, 2023 · 2 comments
Closed

Broken on Textual v0.11+ #1

ofek opened this issue Mar 4, 2023 · 2 comments
Assignees

Comments

@ofek
Copy link

ofek commented Mar 4, 2023

https://github.com/mitosch/textual-select/blob/main/examples/dropdowns.py

╭───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────────────╮
│ C:\Users\ofek\AppData\Local\Programs\Python\Python38\lib\site-packages\textual_select\_select.py:327 in watch_value                                                                                 │
│                                                                                                                                                                                                     │
│   324 │   │   │   self.text = ""                                                               ╭────────────────── locals ──────────────────╮                                                       │
│   325 │   │   │   self.select_list.list_view.index = 0                                         │  self = Select(pseudo_classes={'enabled'}) │                                                       │
│   326 │   │   │   self.refresh(layout=True)                                                    │ value = 0                                  │                                                       │
│ ❱ 327 │   │   await self.emit(self.Changed(self, value))                                       ╰────────────────────────────────────────────╯                                                       │
│   328 │                                                                                                                                                                                             │
│   329 │   class Changed(Message, bubble=True):                                                                                                                                                      │
│   330 │   │   """Value was changed."""                                                                                                                                                              │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'Select' object has no attribute 'emit'
@mitosch
Copy link
Owner

mitosch commented Mar 4, 2023

Thank you for reporting. I will have a look at it and publish an update as soon as possible.

@mitosch mitosch self-assigned this Mar 8, 2023
@mitosch
Copy link
Owner

mitosch commented Mar 8, 2023

Fixed for textual-select 0.3.0 which requires textual >= 0.11.0. For older textual versions, textual-select 0.2.2 can be used.

@mitosch mitosch closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants