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
I was playing around with changing binding descriptions like mentioned #1057. (In this case to switch languages.)
I ran into another issue where trying to remove the footer in any way (including self.recompose()) results in "node has no screen" error.
self.recompose()
from textual.app import App from textual import on from textual.widgets import Footer, Button class TestApp(App): def compose(self): yield Button() yield Footer() @on(Button.Pressed) def button_pressed(self): self.query_one(Footer).remove() app = TestApp() app.run()
Clicking the button gives:
╭─────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────── │ C:\Users\jantti\AppData\Local\Programs\Python\Python310\lib\site-packages\textual\widgets\_footer.py:176 in on_unmount │ │ 173 │ │ self.screen.bindings_updated_signal.subscribe(self, bindings_changed) ╭──── locals ─────╮ │ 174 │ │ self = Footer() │ │ 175 │ def on_unmount(self) -> None: ╰─────────────────╯ │ ❱ 176 │ │ self.screen.bindings_updated_signal.unsubscribe(self) │ 177 │ │ 178 │ def watch_compact(self, compact: bool) -> None: │ 179 │ │ self.set_class(compact, "-compact") │ │ C:\Users\jantti\AppData\Local\Programs\Python\Python310\lib\site-packages\textual\dom.py:680 in screen │ │ 677 │ │ while node is not None and not isinstance(node, Screen): ╭───────────────── locals ─────────────────╮ │ 678 │ │ │ node = node._parent │ node = None │ │ 679 │ │ if not isinstance(node, Screen): │ Screen = <class 'textual.screen.Screen'> │ │ ❱ 680 │ │ │ raise NoScreen("node has no screen") │ self = Footer() │ │ 681 │ │ return node ╰──────────────────────────────────────────╯ │ 682 │ │ 683 │ @property ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── NoScreen: node has no screen
I tried with the current git main branch.
The text was updated successfully, but these errors were encountered:
We found the following entries in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
Thanks. Fixed in 0.72.0
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
No branches or pull requests
I was playing around with changing binding descriptions like mentioned #1057. (In this case to switch languages.)
I ran into another issue where trying to remove the footer in any way (including
self.recompose()
) results in "node has no screen" error.Clicking the button gives:
I tried with the current git main branch.
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: