diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-07-26 14:08:15 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-07-26 14:08:15 +0200 |
| commit | 7d19c32e09bba5bcb43a28fbff4f3ef9c35a669c (patch) | |
| tree | 4cd96bb8ee89486bfd46bb353b75555b3bae8563 /src/featherweight.py | |
| parent | move tree stuff into module trees (diff) | |
| download | pytagomacs-7d19c32e09bba5bcb43a28fbff4f3ef9c35a669c.tar.gz pytagomacs-7d19c32e09bba5bcb43a28fbff4f3ef9c35a669c.tar.bz2 pytagomacs-7d19c32e09bba5bcb43a28fbff4f3ef9c35a669c.tar.xz | |
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/featherweight.py')
| -rwxr-xr-x | src/featherweight.py | 13 |
1 files changed, 11 insertions, 2 deletions
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: |
