summaryrefslogtreecommitdiff
path: root/alot/widgets/utils.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-08-19 19:26:42 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-08-19 20:39:17 +0100
commit509a36b58732af2be053f38ac39996ea7a9d6b29 (patch)
tree340643dfffd5299743ff056d1385f142ffb2c5a3 /alot/widgets/utils.py
parentdd101f95fbd0dc8a3ab0766283a8b68520977883 (diff)
rm SendKeypressCommand, CatchKeyWidgetWrap
which were obsoleted by the previous commit
Diffstat (limited to 'alot/widgets/utils.py')
-rw-r--r--alot/widgets/utils.py20
1 files changed, 0 insertions, 20 deletions
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)