Added loading dialog when opening submissions.

This commit is contained in:
Michael Lazar
2015-01-28 01:53:51 -08:00
parent aa9ec95da4
commit 86e0a94473
5 changed files with 37 additions and 5 deletions
+6 -1
View File
@@ -1,5 +1,6 @@
import praw
import curses
import sys
from content_generators import SubmissionContent, SubredditContent
from utils import curses_session
@@ -37,9 +38,13 @@ class SubmissionViewer(BaseViewer):
elif cmd == curses.KEY_RESIZE:
self.draw()
# Go back
elif cmd in (ord('b'), curses.KEY_LEFT):
break
# Quit
elif cmd == ord('q'):
break
sys.exit()
else:
curses.beep()