diff -r bc51b0220be2 -r 4e7be77bafff sdlterm/demo.py --- a/sdlterm/demo.py Wed Jan 23 21:59:16 2013 +0100 +++ b/sdlterm/demo.py Sun Jan 27 12:54:52 2013 +0100 @@ -1,21 +1,18 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -import sys -sys.path.insert(0, 'build/lib.linux-x86_64-3.2') - from sdlterm import SDLTerminal if __name__ == '__main__': term = SDLTerminal() term.resize(800, 600) - term.select_font("font/DejaVuSansMono.ttf", "font/DejaVuSansMono-Bold.ttf", 12) + term.select_font(b"font/DejaVuSansMono.ttf", b"font/DejaVuSansMono-Bold.ttf", 12) term.erase() term.putch(5, 5, 'W') term.commit() while True: - event = term.get_next_event() + event = term.wait_event() print(event) if event[0] == 'keypress' and event[1] == 'escape': break