tests/make_select.py
author Radek Brich <radek.brich@devl.cz>
Wed, 30 Jan 2013 00:38:48 +0100
changeset 71 cfd3445107b4
parent 63 2a0e04091898
permissions -rwxr-xr-x
Report mousemove relative position change. Window: when in AnchorLayout, aligned right/bottom - fix resizing by mouse to behave as expected.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
sys.path.append('..')

from tuikit.common import *

XSel = make_select('left', 'right', 'bottom', 'top')
print(XSel)

sel = XSel()
print('XSel().selected:', sel.selected)

try:
    sel.update('center')
except ValueError as e:
    print('Error:', e)

try:
    pure_sel = Select()
except TypeError as e:
    print('Error:', e)