tests/test_event_class.py
author Radek Brich <radek.brich@devl.cz>
Sun, 22 Feb 2015 09:53:13 +0100
changeset 119 dd91747504dd
parent 111 b055add74b18
permissions -rwxr-xr-x
Redraw widgets on request. Add scrollbar demo.

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