mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
removed print statements
This commit is contained in:
@@ -230,16 +230,13 @@ class Screen(Widget):
|
||||
Args:
|
||||
widget (Widget): A widget that is removed.
|
||||
"""
|
||||
print("_reset_focus", widget)
|
||||
if self.focused is widget:
|
||||
for sibling in widget.siblings:
|
||||
if sibling.can_focus:
|
||||
print("MOVED focus to", sibling)
|
||||
sibling.focus()
|
||||
break
|
||||
else:
|
||||
self.focused = None
|
||||
print("RESET FOCUS in _reset_focus")
|
||||
|
||||
def set_focus(self, widget: Widget | None, scroll_visible: bool = True) -> None:
|
||||
"""Focus (or un-focus) a widget. A focused widget will receive key events first.
|
||||
|
||||
Reference in New Issue
Block a user