From 509a36b58732af2be053f38ac39996ea7a9d6b29 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sun, 19 Aug 2012 19:26:42 +0100 Subject: rm SendKeypressCommand, CatchKeyWidgetWrap which were obsoleted by the previous commit --- alot/widgets/utils.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'alot/widgets/utils.py') diff --git a/alot/widgets/utils.py b/alot/widgets/utils.py index b50b2db9..ce64a6eb 100644 --- a/alot/widgets/utils.py +++ b/alot/widgets/utils.py @@ -6,7 +6,6 @@ Utility Widgets not specific to alot """ import urwid -import logging class AttrFlipWidget(urwid.AttrMap): @@ -43,22 +42,3 @@ class DialogBox(urwid.WidgetWrap): def keypress(self, size, key): return self.body.keypress(size, key) - - -class CatchKeyWidgetWrap(urwid.WidgetWrap): - def __init__(self, widget, key, on_catch, relay_rest=True): - urwid.WidgetWrap.__init__(self, widget) - self.key = key - self.relay = relay_rest - self.on_catch = on_catch - - def selectable(self): - return True - - def keypress(self, size, key): - logging.debug('CATCH KEY: %s' % key) - logging.debug('relay: %s' % self.relay) - if key == self.key: - self.on_catch() - elif self._w.selectable() and self.relay: - return self._w.keypress(size, key) -- cgit v1.2.3