aboutsummaryrefslogtreecommitdiffstats
path: root/src/featherweight.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-07-26 14:08:15 +0200
committerMattias Andrée <maandree@operamail.com>2013-07-26 14:08:15 +0200
commit7d19c32e09bba5bcb43a28fbff4f3ef9c35a669c (patch)
tree4cd96bb8ee89486bfd46bb353b75555b3bae8563 /src/featherweight.py
parentmove tree stuff into module trees (diff)
downloadpytagomacs-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-xsrc/featherweight.py13
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: