diff options
Diffstat (limited to 'presentty/console.py')
-rw-r--r-- | presentty/console.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/presentty/console.py b/presentty/console.py index d10dc3e..35ddf4f 100644 --- a/presentty/console.py +++ b/presentty/console.py @@ -13,6 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import absolute_import, division, print_function + import argparse import sys import datetime @@ -20,10 +22,10 @@ import time import urwid -import palette -import client -import slide -import rst +from . import palette +from . import client +from . import slide +from . import rst PALETTE = [ ('reversed', 'standout', ''), @@ -166,8 +168,10 @@ class Screen(urwid.WidgetWrap): self.console.prev() elif key == 'page down': self.console.next() + #next(self.console) elif key == 'right': self.console.next() + #next(self.console) elif key == 'left': self.console.prev() elif key == 't': @@ -235,6 +239,7 @@ class Console(object): def next(self): self.screen.setCurrent(self.client.next()) + #self.screen.setCurrent(next(self.client)) def prev(self): self.screen.setCurrent(self.client.prev()) |