tests/test_event_class.py
author Radek Brich <radek.brich@devl.cz>
Mon, 16 Feb 2015 21:17:43 +0100
changeset 117 8680c2333546
parent 111 b055add74b18
permissions -rwxr-xr-x
Update FixedLayout. Add demo launcher.

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