tests/test_event_class.py
author Radek Brich <radek.brich@devl.cz>
Sun, 15 Feb 2015 17:50:24 +0100
changeset 116 165b5d65e1cb
parent 111 b055add74b18
permissions -rwxr-xr-x
Drop AnchorLayout, merge its features into FixedLayout.

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