removed print statements

This commit is contained in:
Will McGugan
2022-10-18 15:25:04 +01:00
parent 8fd05f97aa
commit 9b22c6db9e

View File

@@ -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.