changeset 111 | b055add74b18 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_event_class.py Wed Sep 03 19:14:43 2014 +0200 @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 + +import sys +sys.path.append('..') + +from tuikit.core.events import KeypressEvent + +x = KeypressEvent('tab', '\t', set(['shift', 'ctrl'])) +print(repr(x)) +print(x.mod_key()) + +x = KeypressEvent(None, 'c', set(['shift', 'ctrl'])) +print(x.mod_key())