tests/test_event_class.py
author Radek Brich <radek.brich@devl.cz>
Wed, 03 Sep 2014 21:56:20 +0200
changeset 113 6796adfdc7eb
parent 111 b055add74b18
permissions -rwxr-xr-x
Merge. Due to my schizophrenia, I've accidentally forked my own code. The other set of changes were found in another computer.

#!/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())