From 7d19c32e09bba5bcb43a28fbff4f3ef9c35a669c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 26 Jul 2013 14:08:15 +0200 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/featherweight.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/featherweight.py') diff --git a/src/featherweight.py b/src/featherweight.py index c153797..d5e1d47 100755 --- a/src/featherweight.py +++ b/src/featherweight.py @@ -51,8 +51,17 @@ with touch('%s/feeds' % root) as feeds_flock: print('\033[?1049h\033[?25l', end = '') try: - Tree('My Feeds', feeds).interact() - + tree = Tree('My Feeds', feeds) + while True: + (action, node) = tree.interact() + if action == 'quit': + break + elif action == 'edit': + if node is not None: + pass + elif action == 'open': + pass + except: pass finally: -- cgit v1.2.3-70-g09d2