summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/alot/ui.py b/alot/ui.py
index c62fee27..39999ad8 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -469,18 +469,6 @@ class UI:
if posthook is not None:
posthook(ui=self, dbm=self.dbman, buf=buf, success=success)
- def get_deep_focus(self, startfrom=None):
- """return the bottom most focussed widget of the widget tree"""
- if not startfrom:
- startfrom = self.current_buffer
- if 'get_focus' in dir(startfrom):
- focus = startfrom.get_focus()
- if isinstance(focus, tuple):
- focus = focus[0]
- if isinstance(focus, urwid.Widget):
- return self.get_deep_focus(startfrom=focus)
- return startfrom
-
def get_buffers_of_type(self, t):
"""
returns currently open buffers for a given subclass of