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: Args:
widget (Widget): A widget that is removed. widget (Widget): A widget that is removed.
""" """
print("_reset_focus", widget)
if self.focused is widget: if self.focused is widget:
for sibling in widget.siblings: for sibling in widget.siblings:
if sibling.can_focus: if sibling.can_focus:
print("MOVED focus to", sibling)
sibling.focus() sibling.focus()
break break
else: else:
self.focused = None self.focused = None
print("RESET FOCUS in _reset_focus")
def set_focus(self, widget: Widget | None, scroll_visible: bool = True) -> None: 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. """Focus (or un-focus) a widget. A focused widget will receive key events first.